Hide Forgot
+++ This bug was initially created as a clone of Bug #1102968 +++ Description of problem: After adding an entity to an association (collection) and rolling back the transaction, the reverted entity remains in the association in the level 2 cache. Version-Release number of selected component (if applicable): Hibernate 4.2.7.SP1 How reproducible: Consistently Steps to Reproduce: 1. Add element to an association (collection) 2. Persist the element added 3. flush 4. Navigate from the one side to the many side 5. Raise an exception which rolls back the transaction 6. Repeat the navigation from the one to the many side Actual results: At #6, a javax.persistence.EntityNotFoundException is thrown Expected results: The connection at #6 should not contain the rolled back entity Additional info: Possibly the same as https://hibernate.atlassian.net/browse/HHH-5690
verified on EAP 6.3.1.CP.CR1