[hibernate-issues] [Hibernate-JIRA] Created: (ANN-557) The BigDecimal is not correct to save to database

Anton P. (JIRA) noreply at atlassian.com
Fri Feb 16 06:45:50 EST 2007


The BigDecimal is not correct to save to database
-------------------------------------------------

         Key: ANN-557
         URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-557
     Project: Hibernate Annotations
        Type: Bug

    Versions: 3.1beta3    
 Environment: Hibernate-Version: 3.1.3,
Oracle 10.0.1
JDK 1.5.0_07-b03
    Reporter: Anton P.


The release of BigDecimal differents in jvm 1.4 and 1.5.

in jvm 1.5 BigDecimal.toString() will return ~ 0E-07
if this 0.0000000

and when hibernate make save this. in that field of table will put 7.

that is not good.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6298816
http://www.obscured.info/java/java-5-and-the-bigdecimal/

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list