-->
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: Loading multiple collections on an object
PostPosted: Mon Oct 08, 2007 2:55 pm 
Newbie

Joined: Mon Sep 25, 2006 11:02 pm
Posts: 10
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 1.2 GA

Name and version of the database you are using:
SQL Server 2005

Hi All,

I would like to pre-load multiple collections and their children objects. Here is an example:

Ticket class has WarehouseItems and Corrections collections. When I fetch a list of tickets, I eagerly load WarehouseItems. Now, I would like to load all of the Corrections collections for these tickets in a single query instead of lazy loading each one. Is that possible?

Thanks,
Cole


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 09, 2007 12:26 am 
Expert
Expert

Joined: Fri May 13, 2005 11:13 am
Posts: 292
Location: Rochester, NY
http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/performance.html#performance-multi-query, see near the bottom.


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.