[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2063) StaleObjectStateException after PropertyValueException by inserting new Object

Ales PROCHAZKA (JIRA) noreply at atlassian.com
Fri Sep 8 07:50:24 EDT 2006


StaleObjectStateException after PropertyValueException by inserting new Object
------------------------------------------------------------------------------

         Key: HHH-2063
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2063
     Project: Hibernate3
        Type: Bug

  Components: core  
    Versions: 3.2.0.cr4    
 Environment: Windows, Oracle 9.2.0.1, Hibernate 3.2
    Reporter: Ales PROCHAZKA
    Priority: Critical
 Attachments: XTest.zip

Hallo there.
I found the problem :

When property of newly created object cannot be null, after saveOtUpdate Hibernate throws exception PropertyValueException.
Then when I set this property to some not null value and call saveOrUpdate again, Hibernate throws
org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [....]

Hibernate generates UPDATE SQL commands instead INSERT SQL commands.

see and try attached code. :-)

Thanx



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