@PostLoad on @Embeddable in JPA 2?

I have a problem with the fact that my method @PostLoadin @Embeddablenot invoked.

But I do not know if it should work, and an error appears somewhere, or should I not work, because it is @PostLoadintended only for @Entitys?

I did not find a specific statement about @PostLoadin @Embeddablein JSR .

3.5.1 Lifecycle callback methods

Entity lifecycle callback methods can be defined on an entity listener class and / or directly on an entity class or associated superclass.

I do not know if this expression includes @Embeddableor not.

My persistent provider is Eclipselink.

+3
source share
1 answer

Embeddables. , , "Entity", orm.xml .

EclipseLink , , , , , EclipseLink.

EventListener DescriptorCustomizer, PostLoad postBuild postClone.

+3

All Articles