[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3782?page=c...
]
Daniel Meyer commented on HHH-3782:
-----------------------------------
I should also point out the testSimpleCreate() method in the EnversWithCollectionsTest
class - it commits the empty set first, retrieves it from the database, then saves the
item (the greeting). This works; it's the cascading save (demonstrated by
testComplexCreate()) that results in the error.
Saving a one-to-many relationship results in unsaved transient
instance exception
---------------------------------------------------------------------------------
Key: HHH-3782
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3782
Project: Hibernate Core
Issue Type: Bug
Components: envers
Affects Versions: 3.3.1
Environment: Hibernate 3.3.1.GA
Oracle XE 10g
Reporter: Daniel Meyer
Attachments: envers-with-collections.zip
When I create a transient set and a transient item, point them to each other, and then
commit the set-with-the-item-in-it, I get this exception:
"org.hibernate.TransientObjectException: object references an unsaved transient
instance - save the transient instance before flushing"
This does not happen when I'm not using envers.
The attached project's testComplexCreate() method demonstrates the error. To run the
tests, execute "mvn clean install" (requires Apache Maven, I use version 2.0.9);
then target/surefire-reports/com.example.db.EnversWithCollectionsTest.txt will have the
stack trace.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira