-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: JPA: OneToMany relation not working against the enabled Filt
PostPosted: Thu Jul 09, 2009 2:14 am 
Newbie

Joined: Tue Feb 03, 2009 7:26 pm
Posts: 10
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.