If I have a bidirectional 1-M relationship that is lazy.
[1] Order <--> [Many] Requirements
When I retrieve the Order (either though Load or Query), NHibernate issues a SQL query to retrieve the non-lazy properties.
When I iterate over each Requirement in the Order, NHibernate issues a SQL query for the non-lazy properties of a Requirement. However, since Requirement has a backward reference to Order, it also joins all the Order properties in the Query. Why does it do this, since the Order is already loaded in the Session. Is there a way to prevent this.
Thanks,
craig
|