Package org.hibernate.annotations
Annotation Type TypeRegistration
-
@Target({TYPE,ANNOTATION_TYPE,PACKAGE}) @Retention(RUNTIME) @Repeatable(TypeRegistrations.class) public @interface TypeRegistration
Registers a custom user type implementation to be used by default for all references to a particular class of basic type.May be overridden for a specific entity field or property using
@Type.- Since:
- 6.2
- See Also:
UserType,Type,CompositeTypeRegistration
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<?>basicClassThe basic type described by theuserType().Class<? extends UserType<?>>userTypeTheUserType.
-
-
-
Element Detail
-
basicClass
Class<?> basicClass
The basic type described by theuserType().
-
-