-->
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.  [ 2 posts ] 
Author Message
 Post subject: JOIN FETCH FILTER
PostPosted: Thu Dec 11, 2014 3:55 pm 
Newbie

Joined: Thu Dec 11, 2014 5:32 am
Posts: 2
Hi,

I'm curious to know if there is a way to achieve with hibernate a "JOIN FETCH FILTER" as explained in this post: http://java-persistence-performance.blogspot.fr/2012/04/objects-vs-data-and-filtering-join.html

The post shows the trick for EclipseLink, but I don't know if there is a equivalent for Hibernate.

Thanks !


Top
 Profile  
 
 Post subject: Re: JOIN FETCH FILTER
PostPosted: Fri Dec 19, 2014 11:01 am 
Newbie

Joined: Thu Dec 11, 2014 5:32 am
Posts: 2
Nobody knowns ?

The problem is that if I execute a query "SELECT a FROM A a JOIN FETCH a.bList b WHERE b.c = :p", the result will be a list of arrays with two cells [a, b], and the "rows" will be repeated as much as there are items in the list 'bList'. I would like to have a list of "a" with a filtered bList.


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

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.