Package org.hibernate.annotations
Annotation Type MapKey
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 genericsDeprecated.The optional map key type.
-
Element Details
-
columns
javax.persistence.Column[] columnsDeprecated.- Default:
{}
-
targetElement
Class targetElementDeprecated.Represent the key class in a Map Only useful if the collection does not use generics- Default:
void.class
-
type
Type typeDeprecated.The optional map key type. Guessed if default- Default:
@org.hibernate.annotations.Type(type="")
-
MapKeyColumnThis is the default behavior for Map properties marked as @OneToMany, @ManyToMany or @ElementCollection