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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira