It helps to read the doco's first, (apologies)
Hibernate3 adds the ability to pre-define filter criteria and attach those filters at both a class and a collection level. A filter criteria is the ability to define a restriction clause very similiar to the existing "where" attribute available on the class and various collection elements. Except these filter conditions can be parameterized.
However, the filter(s) seems to be ignored when using FindById. Why?
Shame also that the filterDef from an annotations perspective appears to be at @Entity level, rather than @EmbeddableSuperclass.
|