-->
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.  [ 4 posts ] 
Author Message
 Post subject: Middlegen designate Lists instead of Sets
PostPosted: Thu Oct 28, 2004 3:17 pm 
Beginner
Beginner

Joined: Fri Mar 12, 2004 8:40 pm
Posts: 30
Location: SF Bay Area
Is there a way to tell Middlegen to use a List rather than a Set for a
one-to-many relationship?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 28, 2004 9:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Yes - change the velocity script. Remember you will have to remove the inverse="true" line as well as selecting an appropiate index column.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 31, 2004 2:10 pm 
Newbie

Joined: Tue Sep 28, 2004 2:01 pm
Posts: 17
In my case LinkedHashMaps would be preferable and the solution is the same: customize the velocity script. Changing the collection or map type seems common enough that it should be a Middlegen relation property you can change from the UI or update in the preferences file.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 31, 2004 6:55 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
To some degree this can be done reasonaly easily but a general solution requires much more effort. If my load decreases sometime soon I'll do it. Having said that help is appreciated.


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