No lifecycle events are called on @Embeddable entities in collections

Description

I posted a detailed description here
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

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

Environment

None

Assignee

George Katiforis

Reporter

Pawel Zieminski

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure