-->
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.  [ 3 posts ] 
Author Message
 Post subject: Middlegen: generating <list> instead of <set>
PostPosted: Thu Jul 22, 2004 5:18 am 
Newbie

Joined: Tue May 25, 2004 8:50 am
Posts: 8
Hi,

I use Middlegen to generate my .hbm.xml files, but instead of the default generated <set> elements I would like Middlegen to generate <list> elements. Is this possible?

My ant code looks like:

Code:
   <target name="middlegen">

      <middlegen
         appName="music"
         gui="true"
         databaseurl="jdbc:oracle:thin:@s-oracle01:1521:prorail"
         driver="oracle.jdbc.driver.OracleDriver"
         username="music"
         password="music"
         schema="music"
         xmlprefs="true"
         prefsdir=".">

         <table name="DISC" />
         <table name="ARTIST" />
         <table name="SONG" />

         <hibernate
            destination="build"
            package="nl.prorail.stm.persistence" />

      </middlegen>
      
   </target>


Thanks in advance for any help!

Arjan Huijzer


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 22, 2004 6:37 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Currently this is not a feature. The problem is that Set is the best all over option in terms of support for bi-directionality with no index selection required. In summary its simple and applies for all selectable options.

You can change the hibernate.vm velocity script to get what you want.
It would be great if you implemented it fully and submitted a patch - hint hint :-)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 23, 2004 7:01 am 
Newbie

Joined: Tue May 25, 2004 8:50 am
Posts: 8
I had a look at the hibernate.vm template and will modify it.

Cheers, Arjan


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