[hibernate-issues] [Hibernate-JIRA] Closed: (HBX-114) All DB number types being mapped to BigDecimal

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Mar 21 13:00:30 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HBX-114.
------------------------------


Closing stale resolved issues

> All DB number types being mapped to BigDecimal
> ----------------------------------------------
>
>                 Key: HBX-114
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-114
>             Project: Hibernate Tools
>          Issue Type: Bug
>    Affects Versions: 3.0alpha
>         Environment: Windows XP, Eclipse 3.1M, Oracle 9i 
>            Reporter: Joe Dunne
>             Fix For: 3.0alpha2
>
>
> Using the Hibernate Tools version 3.0 alpa 1, I am generating the hibernate mapping files and all database number types are mapped to BigDecimal.  This includes types like NUMBER(3), and NUMBER(8).
> The problem is in the org.hibernate.cfg.JDBCBinder class, intBounds method.  The project is "reusing" the precision attribute for scale and the Column class defaults precision to 19.  Therefore the current intBounds method does not properly set precision to zero when necessary. 
> current method:
>  private boolean intBounds(int size) {
>         return size>0 && size!=Integer.MAX_VALUE;
>     }
> change to:
>  private boolean intBounds(int size) {
>         return size>=0 && size!=Integer.MAX_VALUE;
>     }

-- 
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