-->
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.  [ 9 posts ] 
Author Message
 Post subject: lazy=true VS lazy=proxy
PostPosted: Fri Oct 21, 2005 4:38 am 
Beginner
Beginner

Joined: Fri Jun 17, 2005 7:24 am
Posts: 23
1)What is the difference between lazy=true and lazy=proxy?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 21, 2005 10:19 am 
Beginner
Beginner

Joined: Thu Jun 02, 2005 9:36 am
Posts: 20
There is no such thing as lazy="proxy", the only valid values are true and false for the lazy attribute.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 21, 2005 10:28 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
setting lazy="true" on a class returns a proxy however.

It is just a reference to a persisted class.

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 21, 2005 10:31 am 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
jshellman wrote:
There is no such thing as lazy="proxy", the only valid values are true and false for the lazy attribute.


This is INCORRECT!


somewhere in the H3.. H3.1 development, lazy="true" was replaced with lazy="proxy". There is also a lazy="no-proxy" option.

_________________
Preston

Please don't forget to give credit if/when you get helpful information.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 21, 2005 10:32 am 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
pksiv wrote:
jshellman wrote:
There is no such thing as lazy="proxy", the only valid values are true and false for the lazy attribute.


This is INCORRECT!


somewhere in the H3.. H3.1 development, lazy="true" was replaced with lazy="proxy". There is also a lazy="no-proxy" option.


Actually, this is true for <many-to-one> associations but not for all associations.

_________________
Preston

Please don't forget to give credit if/when you get helpful information.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 21, 2005 10:34 am 
Beginner
Beginner

Joined: Thu Jun 02, 2005 9:36 am
Posts: 20
Ah, I see. Sorry. I checked the 3.0 dtd.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 21, 2005 11:00 am 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
jshellman wrote:
Ah, I see. Sorry. I checked the 3.0 dtd.


Unfortunately, they're all labeled as the 3.0 dtd. Even the dtd in the 3.1 RC distributions. That's why I'm not exactly sure when it changed. I just know that it did.

_________________
Preston

Please don't forget to give credit if/when you get helpful information.


Top
 Profile  
 
 Post subject: Then what are the difference?
PostPosted: Sat Oct 22, 2005 4:44 am 
Beginner
Beginner

Joined: Fri Jun 17, 2005 7:24 am
Posts: 23
Quote:
lazy="true" was replaced with lazy="proxy". There is also a lazy="no-proxy" option.


Is it mean lazy = true not to be use in future is it?

Then what are the difference? How to use it?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 22, 2005 8:05 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://www.hibernate.org/315.html


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