one-to-one mapping and lazy loading again
Description
Environment
None
Activity
Show:
Won't Fix
Details
Details
Assignee
Unassigned
UnassignedReporter

Components
Affects versions
Priority
Who's Looking?
Open Who's Looking?
Created April 25, 2009 at 6:07 AM
Updated September 25, 2010 at 1:04 PM
Resolved September 25, 2010 at 1:04 PM
Who's Looking?
As almost already knows there is no lazy loading for one-to-one for constrained="false" side. This is because NHibernate have to check the other side of relationship if it exists or not.
In some cases we know that the other side always exist from the design of the system.
For such a case attribute like "always-exist" = "true" would cause that NHibernate do not need to check if related object exist. Thus such an attribute enables lazy loading.