Brett Meyer, I have created a test case that demonstrates this issue on Hibernate 4.3.8. I don't see any way to attach files, so here is the Jar file: https://drive.google.com/file/d/0BxqZnkD8-hBvWm5FWW9jMWJZOTA/view?usp=sharing
The code uses a very simple data class with JPA annotations and an H2 in-memory database with DDL generation turned on. It uses Maven to resolve dependencies and should be fairly simple to run. The test method that demonstrates this problem is net.gaggle.hibernateTesting.TestHibernateInterceptor.testOnFlushDirtyOnlyAttributesChange(). This illustrates that the onFlushDirty interceptor method is not invoked if only values in the @ElementCollection Map field (PersistentMap) are changed. I have another test case within here that illustrates the problem in
HHH-2975
, which I comment on separately. Please let me know if you have any questions.
|