-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: LAZY in nhibernate
PostPosted: Tue Jan 24, 2006 9:13 am 
Newbie

Joined: Wed Dec 01, 2004 2:21 am
Posts: 12
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

NHibernate version:1.0.1

I've used many-2-one relations and i've used lazy="true" in each of my object, therefore, i've a parent child relationship:

When i Get(ISession.Get) the object of detail, the parent is in lazy, but when i wanna get it, NOTHING return.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 24, 2006 9:36 am 
Expert
Expert

Joined: Thu Jan 19, 2006 4:29 pm
Posts: 348
The "Parent" property must be virtual.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 24, 2006 9:38 am 
Expert
Expert

Joined: Thu Jan 19, 2006 4:29 pm
Posts: 348
gert wrote:
The "Parent" property must be virtual.

Actually, for lazy loading to work correctly, all properties must be virtual AFAIK...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.