-->
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: Does Middgen hibernate task genLazyNotProxy work
PostPosted: Mon Nov 15, 2004 3:10 pm 
Beginner
Beginner

Joined: Fri Mar 12, 2004 8:40 pm
Posts: 30
Location: SF Bay Area
I have the following middlegen hibernate task :

<hibernate
destination="src"
package="com.rhi.bobnet.hibernate.beans" javaTypeMapper="middlegen.plugins.hibernate.HibernateJavaTypeMapper"
standardGeneratorScheme="sequence"
genXDocletTags="false"
equalsHashcode="true"
genLazyNotProxy="false"
/>

Regardless of the setting for genLazyNotProxy (true or false) ,
the value for lazy in the resulting hbm.xml files is always true.

<set
name="lobOffices"
lazy="true"
inverse="true"
cascade="none"
>
<key>
<column name="BRANCH_ID" />
</key>
<one-to-many
class="com.rhi.bobnet.hibernate.beans.LobOffice"
/>
</set>

Does genLazyNotProxy work ? Does it do something I'm missing?
Is there a way to set it to false?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 16, 2004 7:58 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The setting you are using determines if the newer lazy tag is used or the older proxy tag is used. Either is used when the Proxy option is selected in the GUI for the target table.


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.