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
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<?>
defaultForType
Name a java type for which this defined type should be the default mapping.String
name
The type name.Parameter[]
parameters
Any configuration parameters for this type definition.
-
-
-
Element Detail
-
typeClass
Class<?> typeClass
The type implementation class.
-
-
-
name
String name
The type name. This is the name that would be used in other locations.- Default:
- ""
-
-
-
defaultForType
Class<?> defaultForType
Name a java type for which this defined type should be the default mapping.- Default:
- void.class
-
-
-
parameters
Parameter[] parameters
Any configuration parameters for this type definition.- Default:
- {}
-
-