-->
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: Help with lazy one-to-one
PostPosted: Sat Apr 02, 2005 1:05 pm 
Regular
Regular

Joined: Thu Jul 29, 2004 11:55 pm
Posts: 75
Hi,

I was reading the advanced fact and it says to use this for a lazy, one-to-one relationship. <one-to-one constrained="true" outer-join="false" class="Foo"/>

How does this make the association lazy and does it work with 2.1.8? Also, does this only work when the relationship is contrained (ie. requires PFK)?

I think I am missing something and I am hoping someone can clarify. I would have thought to make it lazy, the lazy keyword would have to appear.

chuck


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 02, 2005 5:47 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
http://hibernate.org/117.html#A16 does say that this is in combination of using the proxy attribute on the class. In the past there was no lazy key attribute on the class only proxy. The lazy class attribute is a short cut for proxy usign the same class name. Maybe the FAQ should be updated.


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.