-->
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.  [ 6 posts ] 
Author Message
 Post subject: hbm2ddl generated columns order
PostPosted: Mon Sep 22, 2008 6:22 am 
Newbie

Joined: Mon Sep 22, 2008 6:13 am
Posts: 6
I'm trying to create ddl from my java code. It works with ant.
My quetsion is: how can I tell hibernatetool to create ddl with specific column order? For now it generate ddl and sort columns with propery name order. I am using jpaconfiguration.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 25, 2008 6:05 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
It is up to Hibernate Annotations what order the columns will be created in. It is a known limitation.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 26, 2008 2:52 am 
Newbie

Joined: Mon Sep 22, 2008 6:13 am
Posts: 6
Thank you max for your answar.
Would you please give me some example how to define generated column order?
And I have second question: is there any way to define foreign key names in orm.xml instead with Hibernate annotation @ForeignKey?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 26, 2008 12:55 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
It is a known limitation means it is something that is not doable at the moment ;)

About your question about foreign key names ask in the hibernate annotations/jpa forums.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 26, 2008 3:04 pm 
Newbie

Joined: Mon Sep 22, 2008 6:13 am
Posts: 6
OK. Thanks.


Top
 Profile  
 
 Post subject: Re: hbm2ddl generated columns order
PostPosted: Fri Feb 26, 2010 3:02 am 
Newbie

Joined: Mon Sep 22, 2008 6:13 am
Posts: 6
Is it already fixed?


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