-->
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.  [ 5 posts ] 
Author Message
 Post subject: [Reverse Engineering] Using an indexed List?
PostPosted: Tue May 29, 2007 5:22 am 
Newbie

Joined: Tue May 29, 2007 5:17 am
Posts: 3
I've got a table that looks like this (just like the example in the hibernate docs):

OrderLines
-------------
ID
OrderID
LineNumber
LineID

Right now I'm mapping this table by using the reverse engineering function in Hibernate Tools. I'm extending the DelegatingReverseEngineeringStrategy to change some names around, and I want to add some code to this.

Per default my Order class will have a Set of OrderLines. I want to change this to a List of OrderLines, ordered by the LineNumber field. I want to implement this in my ReverseEngineeringStrategy class. Is there any easy way to do this?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 29, 2007 5:46 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
No

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 29, 2007 9:31 pm 
Newbie

Joined: Tue May 29, 2007 5:17 am
Posts: 3
Unfortunately our database model keeps on changing, and on average I use reverse engineering once a week. This will all be over once we enter production of course, but I still feel bad doing this manually several times again. If there's no way to do this with reverse engineering, I guess I will have to write some kind of script to run after the reverse engineering to do this? It would be cool if reverse engineering could support this in the future ;)


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 30, 2007 4:02 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
agreed - want to contribute it ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 30, 2007 4:27 am 
Newbie

Joined: Tue May 29, 2007 5:17 am
Posts: 3
Hmm. I'll take a look at the code. Won't promise anything though, deadlines and all :(


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.