-->
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.  [ 6 posts ] 
Author Message
 Post subject: XDoclet 1.2 and <one-to-one> property-ref
PostPosted: Fri Jan 09, 2004 5:19 am 
Regular
Regular

Joined: Tue Jan 06, 2004 3:32 pm
Posts: 80
Location: Munich, Germany
How can I generate the property-ref attribute with XDoclet 1.2?

@one-to-one ... property-ref="..."

does not work, the attribute is ignored.

Regards,

Andreas


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2004 9:50 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Had a look at the code and it looks like it does not support it.

You will have to edit the appropriate line in the Hibernate-properties.xdt under the hibernate.one-to-one tag name.

Then send the patch to XDoclet JIRA.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2004 11:56 am 
Regular
Regular

Joined: Tue Jan 06, 2004 3:32 pm
Posts: 80
Location: Munich, Germany
Thanks, I've done that.


Top
 Profile  
 
 Post subject: Lazy Loading with One-to-One?
PostPosted: Fri Jan 09, 2004 11:59 am 
Regular
Regular

Joined: Tue Jan 06, 2004 3:32 pm
Posts: 80
Location: Munich, Germany
I followed the chapter "5.1.11. one-to-one" to build a One-to-One relationship of two classes.

My problem is, I'd like to lazy load the dependant class. Currently, it is being loaded at the time the parent is loaded.

Unfortunately, neither <one-to-one> nor <many-to-one> supports the lazy attribute. What can I do?

Regards,

Andreas


Top
 Profile  
 
 Post subject: easily
PostPosted: Fri Jan 09, 2004 12:07 pm 
Beginner
Beginner

Joined: Sat Oct 18, 2003 10:19 am
Posts: 21
Location: Belgium
define a proxy and you have lazy loading on many-to-one at least
(Dont know about dependent classes)

/* @hibernate.class table="countries" proxy="mypackage.PersistentObject" */

_________________
Koen Maes
Leuven, Belgium


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2004 5:47 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Read a FAQ as well.
http://hibernate.bluemars.net/117.html#A14


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