I posted a detailed description here [ https://discourse.hibernate.org/t/no-lifecycle-events-for-embeddable-entities-in-collections/3656 |https://discourse.hibernate.org/t/no-lifecycle-events-for-embeddable-entities-in-collections/3656]
A test showing this issue is here [ https://github.com/pzieminski/collection-of-embeddables1 |https://github.com/pzieminski/collection-of-embeddables1]
I am trying to get lifecycle related callbacks on Embeddable beans using Hibernate 5.4.10.Final. I have been able to locate a bug seemingly related to this issue [ HHH-12326 but it ]. It states the problem has been fixed in earlier Hibernate versions but I am definitely still seeing the issue it in collections of Embeddable.
It is not clear what events could be supported, because an update for example causes a remove and add, but the test attached shows that PostLoad and PrePersist are not working. |
|