-->
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.  [ 6 posts ] 
Author Message
 Post subject: Fetch join when retrieving the searched entity
PostPosted: Tue Feb 10, 2009 1:30 pm 
Beginner
Beginner

Joined: Tue Feb 03, 2009 12:29 pm
Posts: 49
hi,

At present, my searching implementation uses normal JPA query to get the matching entities. I'm using 'fetch joins' to avoid lazy fetching of related entities. Now I have changed the query from JPA QL to Lucene query using Hibernate search. However the related entities are now getting lazy fetched which is causing unnecessary queries to be generated. Is there any way to make the query to use fetch joins?

Thanks,
Seema


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2009 8:13 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi, this is an interesting concept but is not currently supported.
A new feature request on JIRA would be welcome; patches also!

please submit the request: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Added new feature request
PostPosted: Sun Feb 15, 2009 10:21 am 
Beginner
Beginner

Joined: Tue Feb 03, 2009 12:29 pm
Posts: 49
Done, I added it here
http://opensource.atlassian.com/project ... SEARCH-341


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 15, 2009 10:34 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
thanks!
I thought you was interested in being able to define your own fetch join strategy, not only limited to the @IndexedEmbedded ones?

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 15, 2009 10:39 am 
Beginner
Beginner

Joined: Tue Feb 03, 2009 12:29 pm
Posts: 49
You are right, I added that by mistake. Would definitely like to have it for all related entities. Can I add that as a comment in the same feature request?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 15, 2009 10:48 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
yes please add the comment.
thanks!

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.