Package org.hibernate.annotations
Annotation Type ConverterRegistration
-
@Target({TYPE,ANNOTATION_TYPE,PACKAGE}) @Retention(RUNTIME) @Repeatable(ConverterRegistrations.class) public @interface ConverterRegistration
Registers anAttributeConverter. The main purpose is to be able to controlConverter.autoApply()external to the actual converter class, which might be useful for third-parties converters.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends AttributeConverter<?,?>>converterThe converter class to register
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanautoApplyShould the registered converter be auto applied for converting values of its reported domain type?Class<?>domainTypeThe domain type to which this converter should be applied.
-
-
-
Element Detail
-
converter
Class<? extends AttributeConverter<?,?>> converter
The converter class to register
-
-
-
domainType
Class<?> domainType
The domain type to which this converter should be applied. This allows refining the domain type associated with the converter e.g. to apply to a subtype.With
autoApply()set to true, this will effectively override converters defined withConverter.autoApply()set tofalseand auto-apply them.With
autoApply()set to false, this will effectively override converters defined withConverter.autoApply()set totrueand disable auto-apply for them.- Default:
- void.class
-
-