Top Description Methods
org.hibernate.annotations

public @Interface ManyToAny

extends Annotation
Annotations
@Target:METHOD, FIELD
@Retention:RUNTIME
Imports
java.lang.annotation.Retention, javax.persistence.Column, .FetchType

This is the collection-valued form of @Any definitions. Defines a ToMany-style association pointing to one of several entity types depending on a local discriminator. See Any for further information.
Authors
Emmanuel Bernard, Steve Ebersole
See Also
Any

Method Summary

Modifier and TypeMethod and Description
public FetchType
fetch()

Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched.

public Column
metaColumn()

Metadata discriminator column description, This column will hold the meta value corresponding to the targeted entity.

public String
metaDef()

Metadata definition used.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

fetchback to summary
public FetchType fetch()

Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched. The EAGER strategy is a requirement on the persistence provider runtime that the value must be eagerly fetched. The LAZY strategy is applied when bytecode enhancement is used. If not specified, defaults to EAGER.

metaColumnback to summary
public Column metaColumn()

Metadata discriminator column description, This column will hold the meta value corresponding to the targeted entity.

metaDefback to summary
public String metaDef()

Metadata definition used. If defined, should point to a @AnyMetaDef name If not defined, the local (ie in the same field or property) @AnyMetaDef is used