[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-2301) Identity generator with custom insert SQL broken in 3.2

Gail Badner (JIRA) noreply at atlassian.com
Fri Mar 30 19:52:04 EDT 2007


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

Gail Badner updated HHH-2301:
-----------------------------

    Attachment: HHH-2301-testcase.patch

I have attached a patch for a MySQL-specific unit test, MySQLWithNativeGeneratedIdsTest, that reproduces this issue. It is the same as org.hibernate.test.sql.MySQLTest except its mapping  file uses native-generated (auto-increment) IDs. I've add it to the test suite in org.hibernate.test.sql.MySQLWithNativeGeneratedIdsTest.

I have also verified that AbstractEntityPersister.patch fixes this issue and does not cause any other unit tests to fail.

Gail Badner
SourceLabs - http://www.sourcelabs.com
Dependable Open Source Systems 

> Identity generator with custom insert SQL broken in 3.2
> -------------------------------------------------------
>
>                 Key: HHH-2301
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2301
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.2.1
>         Environment: JDK 1.5.0_08, Windows XP
>            Reporter: Scott Rankin
>            Priority: Critical
>         Attachments: AbstractEntityPersister.patch, HHH-2301-testcase.patch
>
>
> When an entity is defined as having custom insert sql and has a ID generator strategy of "identity", the custom insert SQL is ignored in 3.2.  This previously worked in 3.1.3. 
> More details on the forum here: http://forum.hibernate.org/viewtopic.php?t=966317

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