Having an application based on the Hibernate (3.5) / Spring (3.0) / BlazeDS / Flex stack, I need to apply filters for some of my domain classes, as shown below.
@FilterDef(name="notDeletedFilter") @Filter(name="notDeletedFilter", condition="deleted=0") public class Item { private boolean deleted;
These filters should always be applied in my application. However, according to the hibernate documentation , by default, filters are not enabled for this hibernation session.
So my question is very simple: how can I enable all of the specific sleep filters as described above for all Hibernate sessions ? Is there a way to set up a Hibernate factory session in the spring xml configuration file to apply these filters?
source share