annotation to filter results of a @OneToMany association
It is not supported by JPA but if you are using hibernate as JPA provider then you can use annotation @FilterDef and @Filter. Hibernate Core Reference Documentation Hibernate3 has the ability to pre-define filter criteria and attach those filters at both a class level and a collection level. A filter criteria allows you to define … Read more