[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3233) Integer overflow in TableHiLoGenerator
Montagnon Cyril (JIRA)
noreply at atlassian.com
Fri Jun 26 02:52:33 EDT 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33474#action_33474 ]
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list