注释类型 AnyMetaDef
-
@Target({PACKAGE,TYPE,METHOD,FIELD}) @Retention(RUNTIME) @Repeatable(AnyMetaDefs.class) public @interface AnyMetaDef
- 作者:
- Emmanuel Bernard, Steve Ebersole
- 另请参阅:
AnyMetaDefs
-
-
必需元素概要
所需元素 修饰符和类型 必需的元素 说明 StringidTypeNames the identifier Hibernate Type for the entity associated through this Any/ManyToAny mapping.StringmetaTypeNames the discriminator Hibernate Type for this Any/ManyToAny mapping.MetaValue[]metaValuesMaps discriminator values to the matching corresponding entity types.
-
-
-
元素详细资料
-
metaType
String metaType
Names the discriminator Hibernate Type for this Any/ManyToAny mapping. The default is to useStringType
-
-
-
idType
String idType
Names the identifier Hibernate Type for the entity associated through this Any/ManyToAny mapping.
-
-
-
metaValues
MetaValue[] metaValues
Maps discriminator values to the matching corresponding entity types.
-
-
-
name
String name
If defined, assign a global meta definition name to be used in an @Any or @ManyToAny annotation. If not defined, the metadata applies to the current property or field.- 默认值:
- ""
-
-