-->
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: Specify Fetching mode
PostPosted: Wed Oct 19, 2005 12:47 am 
Newbie

Joined: Tue Sep 20, 2005 10:22 pm
Posts: 6
im trying to use Nhibernate in a web services scenario which has been working ok so far. But i am running into some difficulty. If i specify an Object A to be related to Object B in the mapping file, it will auto load object when i fetch Object A. Now i think the only way i can stop it from automatically doing that is by setting the mapping file to lazy=true. Problem is, when it gets serialized the serializer would access the property and load it anyway.

Is there another way to accomplish this? Some setting or somethings thats like lazy=false but it wont load object B when i loadObject A and yet still let me define the relationships in the mapping file so i can use them in HQL?


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.