-->
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: Joins
PostPosted: Fri Jul 24, 2009 3:48 pm 
Newbie

Joined: Fri Jul 24, 2009 3:19 pm
Posts: 2
Alright, I'm sorry for the stupid question, but can someone point me towards a resource that will teach me how to create a Join using the Criteria API? I cannot use QL's, I have to use objects and all that fun stuff. But I get too large a resultset back (causing a JavaHeap Overflow, memory problem) if I don't use a join. I need to filter out some of the data based on another table's attributes. So, anyways, if I could either be shown how or at least be told where to go to find out how, that'd be great.


Top
 Profile  
 
 Post subject: Re: Joins
PostPosted: Fri Jul 24, 2009 6:28 pm 
Regular
Regular

Joined: Thu Apr 14, 2005 10:39 am
Posts: 115
How about reading the dokumentation?

https://www.hibernate.org/hib_docs/v3/a ... tchMode%29
Quote:
setFetchMode

public Criteria setFetchMode(String associationPath,
FetchMode mode)
throws HibernateException

Specify an association fetching strategy for an association or a collection of values.

Parameters:
associationPath - a dot seperated property path
mode - The fetch mode for the referenced association
Returns:
this (for method chaining)
Throws:
HibernateException

https://www.hibernate.org/hib_docs/v3/a ... hMode.html

Greetings Michael


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.