Package org.hibernate.annotations
Annotation Type Type
-
@Target({METHOD,FIELD,ANNOTATION_TYPE}) @Retention(RUNTIME) public @interface Type
Specifies a customUserType
for the annotated attribute mapping. This annotation may be applied:- directly to a property or field of an entity to specify the custom type of the property or field,
- indirectly, as a meta-annotation of an annotation type that is then applied to various properties and fields, or
- by default, via a registration.
{@code
- See Also:
UserType
,TypeRegistration
,CompositeType
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Parameter[]
parameters
Parameters to be injected into the custom type after it is instantiated.
-
-
-
-
parameters
Parameter[] parameters
Parameters to be injected into the custom type after it is instantiated. TheUserType
implementation must implementParameterizedType
to receive the parameters.- Default:
- {}
-
-