-->
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 and Money database type
PostPosted: Tue Jun 02, 2009 11:38 am 
Newbie

Joined: Tue Jun 02, 2009 11:25 am
Posts: 1
Hello,

We are considering using hbm2ddl with ant target
“org.hibernate.tool.ant.HibernateToolTask” and “hibernatetool” to generate DDL (sql schema definitions ) out of “jpaconfiguration”

Ie we have already JPA classes and from them we want to create DDL using hbm2ddl .

At first everything seemed fine, but we have run into a problem. We would like to map BigDecimal into Money Sybase database type and number (19, 4) on Oracle. We now always get Float or something and we don’t know how to change that.

Is there a solution for this issue? My experience with hibernate is quite limited, we are just starting so help is very much appreciated,

Best Regards


Top
 Profile  
 
 Post subject: Re: hbm2ddl and Money database type
PostPosted: Sat Jun 06, 2009 1:27 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
set the type directly on the mapped properties or implement a custom usertype to do the mapping for you - see hibernate docs about user type.

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