I am using ActiveAndroid for the first time.
I have users that have products. I want to select all the users that have a certain product. Here is my "scheme"
@Table(name = "users")
class User extends Model {
}
@Table(name = "products")
class Product extends Model {
@Column(name = "product_name")
private String name;
@Column(name = "user")
private User user;
}
I have the following method:
public List<User> getAllUsersThatHaveProduct(String productName) {
// What do I do here?
}
If I at least knew what tables does Active Android create and how does it relate both tables, I could have tried something, but I dont know that.