[hibernate-issues] [Hibernate-JIRA] Closed: (HBX-536) Reverse Engineering Tool maps decimal to boolean, causing errors in POJO code ( hashcode() method in composite class )

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Fri Sep 15 07:52:24 EDT 2006


     [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-536?page=all ]
     
Max Rydahl Andersen closed HBX-536:
-----------------------------------

    Resolution: Cannot Reproduce

need testcase to reproduce...closing.

> Reverse Engineering Tool maps decimal to boolean, causing errors in POJO code ( hashcode() method in composite class )
> ----------------------------------------------------------------------------------------------------------------------
>
>          Key: HBX-536
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-536
>      Project: Hibernate Tools
>         Type: Bug

>   Components: reverse-engineer
>     Versions: 3.1beta1
>  Environment: Hibernate Tools 3.1.0 beta1JBIDERC2, DB2 UDB 7.2
>     Reporter: John Hazel
>     Priority: Minor

>
> Original Estimate: 3 hours
>         Remaining: 3 hours
>
> The reverse engineering tool is mapping SQL DECIMAL to Java primitive boolean.  This is also causing an error in the composite class hashcode() method, where the code is trying to cast from boolean to int.
> ...
>          result = 37 * result + (int) this.isStatusactive();
> ...
> STATUSACTIVE is a DECIMAL in the DB2 table.  It is converted to a primitive boolean in the POJO generation.

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