I am trying to use filters to dynamically filter the OneToMany associated data. I am using JPA for ORM and hibernate for persistence.
The issue is enabling the filter doesnot have any effect on the associated collection. I tried LAZY loading as well. On googling I came across this post
http://stackoverflow.com/questions/641388/can-i-specify-a-hibernate-relationship-with-a-filter, and the ORM using hibernate seem to work in this case.
I am attaching both cases as zip files here.
http://forums.java.net/jive/servlet/JiveServlet/download/56-64114-354830-9459/HibernateFilter.zip has the sample source whether the filter works and
http://forums.java.net/jive/servlet/JiveServlet/download/56-64114-354830-9458/JPAFilter.zip is the case where it does not.
Please help and thanks in advance.