Package org.hibernate.annotations
Annotation Interface 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:
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionClass<?>
The basic type described by theuserType()
.TheUserType
.
-
Element Details
-
basicClass
Class<?> basicClassThe basic type described by theuserType()
. -
userType
TheUserType
.
-