Package org.hibernate.jpa.event.internal
Class EmbeddableCallback
java.lang.Object
org.hibernate.jpa.event.internal.EmbeddableCallback
- All Implemented Interfaces:
Serializable,Callback
Deprecated.
Represents a JPA callback method declared by an embeddable type.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThe type of callback (pre-update, pre-persist, etc) handledvoidperformCallback(Object entity) Deprecated.Contract for performing the callbacktoString()Deprecated.
-
Method Details
-
performCallback
Deprecated.Description copied from interface:CallbackContract for performing the callback- Parameters:
entity- Reference to the entity for which the callback is triggered.
-
toString
Deprecated. -
getCallbackType
Description copied from interface:CallbackThe type of callback (pre-update, pre-persist, etc) handled- Specified by:
getCallbackTypein interfaceCallback
-
- an embeddable objects doesn't have a well-defined lifecycle,
- it's difficult to understand what this means for composite
collection elements, and
- currently, the
It would be OK to simply remove this capability, since fortunately we never documented it.PreUpdate/PostUpdatecallbacks get called when the embeddable object is not itself being updated.