[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2433) Use of an id together with a natural-id results in an ArraIndexOutOfBoundsException

Danny Bols (JIRA) noreply at atlassian.com
Tue Feb 20 05:03:47 EST 2007


Use of  an id together with a natural-id results in an ArraIndexOutOfBoundsException
------------------------------------------------------------------------------------

         Key: HHH-2433
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2433
     Project: Hibernate3
        Type: Bug

  Components: core  
    Versions: 3.2.1    
 Environment: MySql, Cocoon, WindowsXp
    Reporter: Danny Bols
 Attachments: hb-issue.txt

Use of a natural-id in combination with a generated id results in an ArrayOutOfBoundsException.

The table in the database has 2 unique keys, a natural-id and an internal id (UUID).  A record is loaded in a separate transaction and send to a user form. When the user hits the save button the changes are committed in a new transaction. If this transaction doesn't contain a new load of the record the commit will result in an ArrayIndexOutOfBoundsException. If we leave out the natural-id definition in the config file we don't get an exception.

See attachement for details.

--
Danny

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