注释类型 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.- 作者:
- Emmanuel Bernard, Steve Ebersole
- 另请参阅:
Type,UserType,CompositeUserType,Type
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 Class<?>defaultForTypeName a java type for which this defined type should be the default mapping.StringnameThe type name.Parameter[]parametersAny configuration parameters for this type definition.
-
-
-
元素详细资料
-
typeClass
Class<?> typeClass
The type implementation class.
-
-
-
name
String name
The type name. This is the name that would be used in other locations.- 默认值:
- ""
-
-
-
defaultForType
Class<?> defaultForType
Name a java type for which this defined type should be the default mapping.- 默认值:
- void.class
-
-
-
parameters
Parameter[] parameters
Any configuration parameters for this type definition.- 默认值:
- {}
-
-