[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3233?page=c...
]
Montagnon Cyril commented on HHH-3233:
--------------------------------------
This is not fixed yet.
The trouble is this line (line 464 in 3.3.2 GA) :
result = selectRS.getInt( 1 );
This should be getLong or as Hauke stated it, it should be configurable!
For the time being we have to copy/paste this TableGenerator and create our own
TableGenerator and change this line...
Integer overflow in TableHiLoGenerator
---------------------------------------
Key: HHH-3233
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3233
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.2.2
Reporter: Hauke Rabe
The TableGenerator use for id generation the type INTEGER. The subclass
TableHiLoGenerator use these id for multiplication with the maxLo value. But if you
mutiply two int and assign the result to a long you can get an integer overflow.
The TableGenerator should work with long values, or must be able to configure.
--
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