-->
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.  [ 2 posts ] 
Author Message
 Post subject: Why class has to be lazy even having simple properties?
PostPosted: Sun May 18, 2008 6:31 am 
Newbie

Joined: Sun Apr 06, 2008 2:49 pm
Posts: 17
Hi,

Why class has to be lazy? When I have a class ie:

class A{
private int age;
private string name;
IList children;
}
The first thing is that only collections can take lazy key word and strings, integers etc not and it has sense- collection can be big so we don't want to load it into memory. But the whole above class A even without children parameter has to be lazy - why? Are simple properties also lazy, what for?
And if the whole class is lazy why I have to also mark the collections to be lazy?


Top
 Profile  
 
 Post subject: It doesn't
PostPosted: Mon May 19, 2008 10:37 am 
Newbie

Joined: Mon Feb 25, 2008 7:02 am
Posts: 3
Location: London
You don't have to mark it as lazy

The whole class is a proxy when you reference it as a lazy association,
otherwise - it's not lazy.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.