I added two test cases for both RESOURCE_LOCAL and JTA transactions using your entities and the same data access logic. All tests pass just fine so the problem might be in Spring or how it integrates with Hibernate. Try to change the test cases so that you can replicate your use case without Spring. If you can do that, I will reopen the issue. Otherwise, do a comparison debug to check why your test cases fail and ours pass just fine. |