Package org.hibernate.annotations
Annotation Type TypeDef
-
@Target({TYPE,PACKAGE}) @Retention(RUNTIME) @Repeatable(TypeDefs.class) public @interface TypeDef
A type definition. Much likeType
, but here we can centralize the definition under a name and refer to that name elsewhere. The plural form isTypeDefs
.- See Also:
Type
,UserType
,CompositeUserType
,Type
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<?>
typeClass
The type implementation class.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<?>
defaultForType
Name a java type for which this defined type should be the default mapping.java.lang.String
name
The type name.Parameter[]
parameters
Any configuration parameters for this type definition.
-
-
-
-
parameters
Parameter[] parameters
Any configuration parameters for this type definition.- Default:
- {}
-
-