-->
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.  [ 1 post ] 
Author Message
 Post subject: Object Associations
PostPosted: Thu Apr 22, 2010 5:05 am 
Newbie

Joined: Thu Apr 22, 2010 4:50 am
Posts: 1
I have a proplem where I have two classes associated with a one to many relation ship. ie one parent has many children.

I have senarios for working with this relationship.

1. where when working with a parent only certain children are loaded, I can acheive this with using a filter is the mapping file and apply the filter when getting the parent.

2. when working with a child in some senarios I do not whant to load the parent, or have it loaded lazily. This proplem occurs if I want to send the object over wcf to a client, serialization invokes the lazy loadable relation. I have not managed to do this yet.

So the question is how do I prevent a many-to-one relationship from loading the parent side of the relationship? Is this possible in NHibernate.


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

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.