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

P G (JIRA) noreply at atlassian.com
Wed Oct 29 08:30:04 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/EJB-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31549#action_31549 ] 

P G commented on EJB-398:
-------------------------

This problem was resolved about version: 3.4.0. Please close issue

> 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