Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前,我通过在我的对象中设置注释,为所有查询静态设置外部集合的渴望级别。
@ForeignCollectionField(eager=true) private Collection<Team> teams = new ArrayList<Team>();
有没有办法动态设置这个急切级别,这取决于我正在做的查询。我希望它不要将渴望级别始终设置为 true。我只在一些特殊查询中需要这个。
问候托比
编辑: 没有答案是否意味着这是不可能的,或者是否意味着没有人知道答案?