Ignore Hibernate @Where annotation

后端 未结 5 1811
孤独总比滥情好
孤独总比滥情好 2020-12-17 10:05

I have an Entity which has an association to another Entity annotated with @Where, like so

public class EntityA {

    @OneToMany
    @Where(...)
    private         


        
5条回答
  •  眼角桃花
    2020-12-17 10:43

    Another solution is filter, as explained in this question. Hibernate how to ignore @Where annotation

    I will be trying this myself because the combination of @where and @NamedNativeQueries is a very cumbersome solution in our situation. But I do not know yet if @Filter is any better.

提交回复
热议问题