-->
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: BigDecimal and schema generation
PostPosted: Wed Apr 06, 2005 10:24 am 
Regular
Regular

Joined: Thu Oct 07, 2004 4:45 pm
Posts: 92
Has anyone had problems doing schema generation on an Oracle database when a property of a mapped class is a BigDecimal? Hibernate generates SQL like the following:

create table my_table (big_field number(19,255), ...)

This causes the following error:

ORA-01728: numeric scale specifier is out of range (-84 to 127)

I'm using Hibernate 2.1.6 and Oracle 9i with the Oracle9 dialect.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 17, 2006 6:04 am 
Newbie

Joined: Thu Oct 21, 2004 2:43 pm
Posts: 9
I'm havind the exact same problem
I have a field that is a BigDecimal but when i create my DB it tries to create a column with NUMERIC (19,255)

i'm using the same hibernate version as posted above.


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.