ManyToMany: "compound-entity" not generated and setters not generated in entities #13
Closed
Description
I can't seem to get ManyToMany relationships to work:
@Entity
public interface User extends Parcelable {
@Key
@Generated
int getId();
@ManyToMany(mappedBy = "owners", cascade = CascadeAction.NONE)
List<Account> getOwned();
//void setOwned(List<Account> accounts);
}
@Entity
public interface Account extends Parcelable {
@Key
@Generated
int getId();
@ManyToMany(mappedBy = "owners", cascade = CascadeAction.NONE)
List<User> getOwners();
}
Gradle always says: error: cannot find symbol class AccountEntity_UserEntity
The class "AccountEntity_UserEntity" is not generated, should we create this ourselves?
Another issue, setters for ManyToMany and OneToMany are not created (if I uncomment the setter-line above, it always says "xEntity is always abstract and does not override ...blabla", the setter is not generated).