Annotation Interface EmbeddableInstantiatorRegistration
@Target({TYPE,ANNOTATION_TYPE,PACKAGE,MODULE})
@Retention(RUNTIME)
@Repeatable(EmbeddableInstantiatorRegistrations.class)
public @interface EmbeddableInstantiatorRegistration
Registers a custom instantiator implementation to be used
for all references to a particular
Embeddable.
May be overridden for a specific embedded using EmbeddableInstantiator.
Registrations applied to a package-info.java or module-info.java
are processed before Hibernate begins to process any attributes, etc.
Registrations applied to a class are only applied once Hibernate begins to process that class; it will also affect all future processing. However, it will not change previous resolutions to use this newly registered one. Due to this nondeterminism, it is recommended to only apply registrations to packages or modules, or directly to the relevant embeddable class.
-
Required Element Summary
Required Elements
-
Element Details
-
embeddableClass
Class<?> embeddableClass -
instantiator
Class<? extends EmbeddableInstantiator> instantiator
-