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

P G (JIRA) noreply at atlassian.com
Tue Oct 28 08:36:04 EDT 2008


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