-->
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.  [ 3 posts ] 
Author Message
 Post subject: Hibernate + Oracle: round float values
PostPosted: Wed Nov 16, 2005 12:04 pm 
Newbie

Joined: Mon Nov 14, 2005 6:28 am
Posts: 9
I have a application with:

- J2EE
- Hibernate 2
- Oracle 9

When I save a entity with a atribute Float, hibernate (or jdbc) round value when it is saving to database.

I have reading this problem is for jdbc. I use classes12.jar, and I prove with ojdbc14.jar and this error continue.

I prove this "solution": http://forum.hibernate.org/viewtopic.php?t=934411
but the error continue.

Some suggestion?


Top
 Profile  
 
 Post subject: Solution!!!
PostPosted: Wed Nov 16, 2005 12:52 pm 
Newbie

Joined: Mon Nov 14, 2005 6:28 am
Posts: 9
I download:

Oracle9i Release 2 (9.2.0.5) (9.2.0.4) (9.2.0.3) & (9.2.0.1) drivers (ojdbc14.jar)

from: http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html

and work fine!!! :D


Top
 Profile  
 
 Post subject: Hibernate + Oracle: round float values
PostPosted: Wed Nov 16, 2005 12:52 pm 
Newbie

Joined: Tue Nov 15, 2005 2:16 pm
Posts: 10
Hi,

We use java.math.BigDecimal to map currency into Oracle Number type.

And you should stick to ojdbc14 to avoid other problems that may come (like the 0600 class of oracle errors)

Cheers.

Emilio


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