[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1087) INTEGER UNSIGNED is not reverse engineered into a java.lang.Long

Roel van Dijk (JIRA) noreply at atlassian.com
Fri Sep 19 07:27:04 EDT 2008


INTEGER UNSIGNED is not reverse engineered into a java.lang.Long
----------------------------------------------------------------

                 Key: HBX-1087
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1087
             Project: Hibernate Tools
          Issue Type: Bug
          Components: hbm2java
    Affects Versions: 3.2beta9
         Environment: Hibernate Tools 3.2.0.b9
Server version: 5.0.51a-3ubuntu5.1 (Ubuntu)

            Reporter: Roel van Dijk


Create a table with an INTEGER UNSIGNED:

create table test_table (
    id BIGINT NOT NULL AUTO_INCREMENT,
    other_id INTEGER UNSIGNED,
    CONSTRAINT PK_Test_Table PRIMARY KEY (id)
)

When I run the hibernate-tools "hbm2java" ant-task on this database, the 'other_id' field is reverse engineered into an Integer.

Since a database unsigned integer doesn't fit into an Integer, I had expected a Long. This seems like a bug? (or feature request, maybe)

Roel



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