Package org.hibernate.annotations
Annotation Type JavaTypeRegistration
@Target({PACKAGE,TYPE,ANNOTATION_TYPE})@Inherited@Retention(RUNTIME)@Repeatable(JavaTypeRegistrations.class)public @interfaceJavaTypeRegistration
Registers aBasicJavaTypeas the default Java type descriptor for the givenjavaType().Registrations applied to a package 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 to use a
TypeContributor.- Since:
- 6.0
- Implementation Note:
BasicJavaTyperegistrations are maintained by theJavaTypeRegistry.
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extendsBasicJavaType<?>>descriptorClassClass<?>javaType
Element Detail
javaType
Class<?> javaType
descriptorClass
Class<? extendsBasicJavaType<?>> descriptorClass