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: One-To-Many Inverse Relationship
PostPosted: Tue Sep 04, 2007 6:26 pm 
Beginner
Beginner

Joined: Wed May 02, 2007 12:24 am
Posts: 41
I have a bidirectional one-to-many mapping...let's call the classes:
Parent: has many childeren.
Child: has an inverse parent.

Let's say my parent has 5 childeren.

nHibernate runs a query to grab the parent from the db.
then it runs 5 query one for each child.

I've noticed that the quries it runs for the child class is an outer join that is loading the parent class as well.

Is there a way I can tell nHibernate that it doesn't need to load the parent class for each child, because it is just an inverse relationship?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 05, 2007 12:34 am 
Regular
Regular

Joined: Tue Feb 21, 2006 9:50 am
Posts: 107
I have asked the same and never got an answer even in the developer forum.

Regards
Klaus


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.