@Target(value={PACKAGE,TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) @Repeatable(value=AnyMetaDefs.class) public @interface AnyMetaDef
AnyMetaDefs
Modifier and Type | Required Element and Description |
---|---|
String |
idType
Names the identifier Hibernate Type for the entity associated through this Any/ManyToAny mapping.
|
String |
metaType
Names the discriminator Hibernate Type for this Any/ManyToAny mapping.
|
MetaValue[] |
metaValues
Maps discriminator values to the matching corresponding entity types.
|
public abstract String metaType
Names the discriminator Hibernate Type for this Any/ManyToAny mapping. The default is to use
StringType
public abstract String idType
Names the identifier Hibernate Type for the entity associated through this Any/ManyToAny mapping.
public abstract MetaValue[] metaValues
Maps discriminator values to the matching corresponding entity types.
public abstract 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.
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.