| 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
|
|