Which kind of one-to-one ? unidirectional o bidirectional ? and, which is the mapping (XML) ?
On Thu, Sep 22, 2011 at 7:52 PM, Stuart Carnie <[email protected]>wrote: > I was testing lazy-loading of 1:1 extension tables, by adding the lazy > attribute to the <one-to-one /> element. As expected, when I load the > entity and attempt to access the lazy property outside a session, I receive > a LazyLoadException. However when examining the SQL generated, NH still > includes the OUTER JOIN to the secondary table. Looks like a bug to me, but > I wanted to solicit some feedback. > > The addition of the lazy attribute to the xsd and comments within the NH > code suggest lazy loading should be supported for 1:1 extensions. > > -- Fabio Maulo
