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.  [ 7 posts ] 
Author Message
 Post subject: Sorting issue in the hibernate reverse engineering file
PostPosted: Wed Sep 20, 2006 7:53 am 
Newbie

Joined: Wed Sep 20, 2006 7:42 am
Posts: 12
Location: Sweden
Hi,

I'm using the hibernate reverse engineering plugin when generating my mapping files and classes from my db.

I'm having some problems to generate the order-by tag in my hbm.xml-file.

<set name="log" table="log" order-by="(DatumTid) desc">
<key column="RmaID"/>
<one-to-many class="com.rmasystem.Log"/>
</set>

How do I specify in the reveng-file to produce the above result?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 7:59 am 
Hibernate Team
Hibernate Team

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

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Will it be possible in the upcoming versions?
PostPosted: Wed Sep 20, 2006 9:14 am 
Newbie

Joined: Wed Sep 20, 2006 7:42 am
Posts: 12
Location: Sweden
Will it be possible in the upcoming versions?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 9:18 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
not unless someone provides a patch ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 9:54 am 
Newbie

Joined: Wed Sep 20, 2006 7:42 am
Posts: 12
Location: Sweden
I'll see what I can do.

Isn't this a quite good feature?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 10:04 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the issue is that we need to draw a line between using reveng.xml and starting to use mapping files instead.

adding every conceivable attribute will be alot of work and very redundant.

so somethings we just don't do unless someone actually submit a patch/wish for it (and it makes sense to apply it)

/max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 10:05 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
e.g. adding support for setting the cascade attribute is much more important in my opinion.

_________________
Max
Don't forget to rate


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