My problem is the case when i have an embedded attribute in an entity The embeddable has a one to many relation with an orphan removal true when i try to delete the main entity (which contains the embeddable) I have an org.hibernate.property.access.spi.PropertyAccessException it happens because the owner of the collection is the embeddable object and not the main object so in org.hibernate.engine.internal.Collections#processDereferencedCollection i try to get the identifier Object ownerId = loadedPersister.getOwnerEntityPersister().getIdentifier( coll.getOwner(), session ); and i have a desynchronisation because the getOwnerEntityPersister() corresponds to the maoin entity and the coll.getOwner it’s the embeddable. So impossible to find the identifier. I try to apply the solutions proposed here https://stackoverflow.com/questions/9878066/embeddable-entity-with-onetomany-attribute but it does not work in mi case. How can I solve this |