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

Emmanuel Bernard (JIRA) noreply at atlassian.com
Fri Mar 9 15:58:10 EST 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-557?page=all ]
     
Emmanuel Bernard resolved ANN-557:
----------------------------------

    Resolution: Rejected

Talked to Steve,Hibernate does not use BD.toString to talk to the DB. 

We don't want to introduce fixes for Oracle bugs. The other DB seems to work just fine. If you have an oracle support contract, please shoot

> 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