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

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


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-1087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31247#action_31247 ] 

Roel van Dijk commented on HBX-1087:
------------------------------------

MySQL, sorry. (5.0.51a-3ubuntu5.1 (Ubuntu))

> 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