-->
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.  [ 2 posts ] 
Author Message
 Post subject: hbm2ddl doesn't generate column for order-by
PostPosted: Tue Jun 12, 2007 4:59 am 
Newbie

Joined: Tue Jun 12, 2007 4:45 am
Posts: 1
L.S.,


I'm using Hibernate version 3.2.4 in combination with HSQL DB 1.8.0 for unit testing purposes.

In my mapping document, I have
<set name="products" access="field" table="CATEGORY_PRODUCTS" order-by="RANKING">
<key column="CATEGORY_ID"/>
<many-to-many class="Product" column="PRODUCT_ID"/>
</set>

When hbm2ddl generates the tables, it doesn't generate a RANKING column on the CATEGORY_PRODUCTS table. I guess this is quite normal, because there is no way the hbm2ddl tool can now what type of column to generate. How can I get Hibernate to create this column anyway?


Thank you for any help,

Gert


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 12, 2007 6:01 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
map the column so it knows what type it is

_________________
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.  [ 2 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.