MapKeyColumn
- Implemented Interfaces:
Annotation
_"; "KEY". Example:
{@snippet :- Since:
- JPA 2.0
Public Annotation Attributes
Defaults to the generated SQL to create a column of the inferred type.
- Since:
- JPA 2.0
- Since:
- JPA 2.0
Applies only to columns whose type is parameterized by length, for example, varchar or varbinary types.
- Since:
- JPA 2.0
- If the map key is for an element collection, the map key column is in the collection table for the map value.
- If the map key is for a ManyToMany entity relationship or for a OneToMany entity relationship using a join table, the map key column is in a join table.
- If the map key is for a
OneToManyentity relationship using a foreign key mapping strategy, the map key column is in the table of the entity that is the value of the map.
Defaults to the concatenation of the following: the name of the referencing relationship field or property; "_"; "KEY".
- Since:
- JPA 2.0
- Since:
- JPA 2.0
- Since:
- JPA 3.2
Applies only to columns of exact numeric type.
The default value 0 indicates that a provider-determined precision should be inferred.
- Since:
- JPA 2.0
Applies only to columns of exact numeric type.
The default value 0 indicates that a provider-determined precision should be inferred.
- Since:
- JPA 2.0
Defaults: If the map key is for an element collection, the name of the collection table for the map value. If the map key is for a OneToMany or ManyToMany entity relationship using a join table, the name of the join table for the map. If the map key is for a OneToMany entity relationship using a foreign key mapping strategy, the name of the primary table of the entity that is the value of the map.
- Since:
- JPA 2.0
- Since:
- JPA 2.0
- Since:
- JPA 2.0