-->
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: LEFT JOIN FETCH in a Criteria query?
PostPosted: Thu Aug 25, 2005 1:50 pm 
Regular
Regular

Joined: Tue Mar 01, 2005 2:35 pm
Posts: 60
Is this possible? I like to use criteria queries when possible, but can't figure out how to join in another table using a left join instead of an inner join. Thanks!


Top
 Profile  
 
 Post subject: Re: LEFT JOIN FETCH in a Criteria query?
PostPosted: Thu Aug 25, 2005 3:33 pm 
Beginner
Beginner

Joined: Mon Aug 15, 2005 4:37 pm
Posts: 27
Location: Washington DC
pkulak wrote:
Is this possible? I like to use criteria queries when possible, but can't figure out how to join in another table using a left join instead of an inner join. Thanks!


Hi,

Check this link. It specifies a setFetchMode() method with parameters as the name of the foreign key link in the mapping file, and the FetchMode which has static fields to set for left join.

http://www.hibernate.org/hib_docs/v3/re ... ing-custom

I hope this helps.

-Surya


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.