-->
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: Lazy when loading list, not lazy when getting one object
PostPosted: Tue Mar 24, 2009 3:27 am 
Beginner
Beginner

Joined: Fri Sep 26, 2008 9:19 am
Posts: 20
Location: Belgium
Hibernate version: 2.0

Hi,

Is it possible to set Lazy loading, so my one to many collections aren't loaded when loading a list, but do get loaded when getting one object with a Get Method?

My problem is that i need to use the object without the session because the datalayer is in a WCF Service. My session will get closed after getting an object or loading a list of objects.

I've been trying to figure out the lazy loading but i'm getting message that my properties should be virtual. But I don't see that in the documentation.

Greets


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.