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