使用 PlayFramework,我试图列出没有与我的模型关联的 ManyToMany 项目的所有项目,我该怎么做?
这是我的结构:
User
@ManyToMany
List<Section> sections;
public static Model.Finder<Long,User> find = new Model.Finder<Long, User>(Long.class, User.class);
Section
Integer year;
@ManyToMany
List<User> users;
public static Model.Finder<Long,Section> find = new Model.Finder<Long, Section>(Long.class, Section.class);