-->
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: OracleDialect and BigDecimal
PostPosted: Tue Nov 04, 2003 4:39 am 
Newbie

Joined: Thu Oct 23, 2003 10:55 am
Posts: 11
Hello,

I have a class with fields that are mapped to BigDecimal (with Hibernate 2.0.3). The problem is that with OracleDialect, the schema definition uses the NUMBER(19, 255) type that throws the following error:
[code]ORA-01728: sp


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 04, 2003 5:36 am 
Newbie

Joined: Thu Oct 23, 2003 10:55 am
Posts: 11
Hello again,

I have found a workaround solution by setting the length to 127. The NUMBER(9,127) will be created for Oracle. The main problem will remain that I am not able to manage independly the Types.
After having read the code, it seems that the best way is to extend the OracleDialect by subclassing the OracleDialect or Oracle9dialect and then by registering the BIGDECIMAL Type to a new type (and then replacing the already defined BIGDICMAL type in the ORacle9Dialect)!
Is that the best way?

Thanx

MG


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.