[hibernate-issues] [Hibernate-JIRA] Closed: (EJB-398) identity error, when insert statement is created

Gail Badner (JIRA) noreply at atlassian.com
Wed Oct 29 14:46:05 EDT 2008


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

Gail Badner closed EJB-398.
---------------------------

      Assignee: Gail Badner
    Resolution: Duplicate

> identity error, when insert statement is created
> ------------------------------------------------
>
>                 Key: EJB-398
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-398
>             Project: Hibernate Entity Manager
>          Issue Type: Bug
>          Components: EntityManager
>    Affects Versions: 3.3.1.GA
>         Environment: MS SQL Server
>            Reporter: P G
>            Assignee: Gail Badner
>            Priority: Blocker
>
> When hibernate generates insert for table with identity, it adds to insert statement a field with identity primary key.
> A entity has enabled auto generation type and MS SQL Dialect set for this type identity generation.
> I see created changes which could break proper generation in:AbstractEntityPersister.postConstruct(...).
> The 3.2.1.GA version has: sqlIdentityInsertString = generateIdentityInsertString( getPropertyInsertability() );
> The 3.3.1.GA version has: sqlIdentityInsertString = sqlInsertStrings[0] == null ? generateIdentityInsertString( getPropertyInsertability() ) : sqlInsertStrings[0];
> In all mentioned versions, sqlInsertStrings is generation in the same way.

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