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