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

Christian Bauer (JIRA) noreply at atlassian.com
Fri Sep 8 07:55:24 EDT 2006


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2063?page=all ]
     
Christian Bauer resolved HHH-2063:
----------------------------------

    Resolution: Rejected

You are not allowed to use the Session after an exception was thrown. Go to http://forum.hibernate.org/ if you need help with Hibernate.


> 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
>
> Original Estimate: 2 hours
>         Remaining: 2 hours
>
> 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