Ignore Hibernate @Where annotation

后端 未结 5 1792
孤独总比滥情好
孤独总比滥情好 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:26

    After lots of research it appears that this is simply impossible. I'd strongly suggest avoiding @Where, as it is hard to predict beforehand if you'll ever need those associations or not.

提交回复
热议问题