[nhusers] Re: Lazy load of one-to-one association

2009-08-15 Thread Jeffrey Zhao
From: Fabio Maulo Sent: Saturday, August 15, 2009 11:39 PM To: nhusers@googlegroups.com Subject: [nhusers] Re: Lazy load of one-to-one association 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 persist

[nhusers] Re: Lazy load of one-to-one association

2009-08-15 Thread Jeffrey Zhao
witter: http://twitter.com/jeffz_cn -- From: "hival" Sent: Saturday, August 15, 2009 11:46 PM To: "nhusers" Subject: [nhusers] Re: Lazy load of one-to-one association > > Hmm... > Here is my mapping and SQL (NH2.

[nhusers] Re: Lazy load of one-to-one association

2009-08-15 Thread Jeffrey Zhao
er.com/jeffz_cn -- From: "hival" Sent: Saturday, August 15, 2009 11:46 PM To: "nhusers" Subject: [nhusers] Re: Lazy load of one-to-one association > > Hmm... > Here is my mapping and SQL (NH2.1.0) > > asse

[nhusers] Re: Lazy load of one-to-one association

2009-08-15 Thread hival
Hmm... Here is my mapping and SQL (NH2.1.0) Parent

[nhusers] Re: Lazy load of one-to-one association

2009-08-15 Thread Fabio Maulo
> Twitter: http://twitter.com/jeffz_cn > > -- > From: "hival" > Sent: Saturday, August 15, 2009 11:09 PM > To: "nhusers" > Subject: [nhusers] Re: Lazy load of one-to-one association > > > >

[nhusers] Re: Lazy load of one-to-one association

2009-08-15 Thread Jeffrey Zhao
Tried but nothing changed. Blog: http://www.cnblogs.com/JeffreyZhao/ Twitter: http://twitter.com/jeffz_cn -- From: "hival" Sent: Saturday, August 15, 2009 11:09 PM To: "nhusers" Subject: [nhusers] Re: Lazy load of on

[nhusers] Re: Lazy load of one-to-one association

2009-08-15 Thread hival
Try to specify constrained="true" in the User's side of the 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. --~--~-~--~~~---~--~--