let your app choose which is the real relationship and configure it as many-to-one for persistence scope (that is one of the reasons to use a persistent-layer based on ORM ;) ).
2009/8/15 Jeffrey Zhao <[email protected]> > > Tried but nothing changed. > > > Blog: http://www.cnblogs.com/JeffreyZhao/ > Twitter: http://twitter.com/jeffz_cn > > -------------------------------------------------- > From: "hival" <[email protected]> > Sent: Saturday, August 15, 2009 11:09 PM > To: "nhusers" <[email protected]> > Subject: [nhusers] Re: Lazy load of one-to-one association > > > > > Try to specify constrained="true" in the User's side of the <one-to- > > one> association.I'm not sure whether it is correct but it works. It > > seems that NH doesn't look at the other side of the one-to-one assoc. > > to find out whether the assoc. is optional or not. > > > > > > > > > > > > > -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
