Ebean Search,ManyToMany为空?

问题描述 投票:2回答:2

[使用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);
java playframework-2.0 ebean
2个回答
4
投票

您需要执行此操作:


2
投票

尝试这些:

© www.soinside.com 2019 - 2024. All rights reserved.