Package org.hibernate.annotations
Annotation Type MapKeyManyToMany
Deprecated.
Define the map key columns as an explicit column holding the map key
This is completely different from
MapKey which use an existing column
This annotation and MapKey are mutually exclusive-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated.Deprecated.Represent the key class in a Map Only useful if the collection does not use generics
-
Element Details
-
joinColumns
javax.persistence.JoinColumn[] joinColumnsDeprecated.- Default:
{}
-
targetEntity
Class targetEntityDeprecated.Represent the key class in a Map Only useful if the collection does not use generics- Default:
void.class
-
MapKeyJoinColumnMapKeyJoinColumnsThis is the default behavior for Map properties marked as @OneToMany, @ManyToMany or @ElementCollection