Top Description Methods
org.hibernate.annotations

public @Interface AnyMetaDef

extends Annotation
Annotations
@Deprecated
@Target:PACKAGE, TYPE, METHOD, FIELD
@Retention:RUNTIME
@Repeatable:AnyMetaDefs
Imports
java.lang.annotation.Repeatable, .Retention

Deprecated

To be removed in 6.0

Used to provide metadata about an Any or ManyToAny mapping.
Authors
Emmanuel Bernard, Steve Ebersole
See Also
AnyMetaDefs

Method Summary

Modifier and TypeMethod and Description
public String
idType()

Names the identifier Hibernate Type for the entity associated through this Any/ManyToAny mapping.

public String
metaType()

Names the discriminator Hibernate Type for this Any/ManyToAny mapping.

public MetaValue[]
metaValues()

Maps discriminator values to the matching corresponding entity types.

public String
name()

If defined, assign a global meta definition name to be used in an @Any or @ManyToAny annotation.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

idTypeback to summary
public String idType()

Names the identifier Hibernate Type for the entity associated through this Any/ManyToAny mapping.

metaTypeback to summary
public String metaType()

Names the discriminator Hibernate Type for this Any/ManyToAny mapping. The default is to use org.hibernate.type.StringType

metaValuesback to summary
public MetaValue[] metaValues()

Maps discriminator values to the matching corresponding entity types.

nameback to summary
public 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.