[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-1160) Incorrect use of getGeneratedKey() for Oracle

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Mar 21 13:01:13 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-1160.
-------------------------------


Closing stale resolved issues

> Incorrect use of getGeneratedKey() for Oracle
> ---------------------------------------------
>
>                 Key: HHH-1160
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1160
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>         Environment: Oracle Driver 10.2.0.1.0
> Oracle DB 9.2.0.6.0
>            Reporter: Emmanuel Bernard
>            Assignee: Steve Ebersole
>             Fix For: 3.1 rc3
>
>
> The problem is that Oracle's getGeneratedKeys() returns a rowID. This is Oracle's internal unique representation of a row and can not be represented as a long which is why the exception is thrown. This is within the spec for getGeneratedKeys(). To make getGeneratedKeys() work for any database, the PreparedStatement object must be created with the method that takes a String[] of columns to return from getGeneratedKeys(). This is the change that is made in Jira ticket "JBAS-2399" to make getGeneratedKeys() work for Oracle with EJB2.1.

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