Top Description Methods
org.hibernate.annotations

public @Interface MapKeyManyToMany

extends Annotation
Annotations
@Target:METHOD, FIELD
@Retention:RUNTIME
@Deprecated
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target, javax.persistence.JoinColumn

Deprecated

Use javax.persistence.MapKeyJoinColumn javax.persistence.MapKeyJoinColumns This is the default behavior for Map properties marked as @OneToMany, @ManyToMany or @ElementCollection

Define the map key columns as an explicit column holding the map key This is completely different from javax.persistence.MapKey which use an existing column This annotation and javax.persistence.MapKey are mutually exclusive
Author
Emmanuel Bernard

Method Summary

Modifier and TypeMethod and Description
public JoinColumn[]
public Class<T>
targetEntity()

Represent the key class in a Map Only useful if the collection does not use generics

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

joinColumnsback to summary
public JoinColumn[] joinColumns()
targetEntityback to summary
public Class<T> targetEntity()

Represent the key class in a Map Only useful if the collection does not use generics