About ManyToMany

11-20 of 45Refresh
JPA Doc
9

javax.persistence.MapKeyEnumerated

with the ElementCollection, OneToMany, or ManyToMany annotation. If the enumerated type is not ... SalaryRate {JUNIOR, SENIOR, MANAGER, EXECUTIVE} @Entity public class Employee { @ManyToMany ... See Also: ElementCollection OneToMany ManyToMany EnumType value (Optional) The type used in mapping a map key enum
JPA Doc
7

javax.persistence.AssociationOverride

Address address; // Unidirectional @ManyToMany(targetEntity=PhoneNumber.class) List phoneNumbers; } @Entity public class PhoneNumber { @Id int number; @ManyToMany
JPA Doc
7

javax.persistence.JoinColumn

of the target entity. If the join is for a ManyToMany mapping or for a OneToOne or bidirectional ManyToOne ... . If the join is for a ManyToMany mapping or for a OneToOne or bidirectional ManyToOne/OneToMany mapping using
JPA Doc
7

javax.persistence.MapKeyClass

annotations (OneToMany or ManyToMany). The MapKey annotation is not used when MapKeyClass ... ManyToMany Class value (Required) The type of the map key. (Required) The type of the map key. Since: JPA 2.0
JPA Doc
7

javax.persistence.MapKeyColumn

the collection table for the map value. If the map key is for a ManyToMany entity relationship or ... is for a OneToMany or ManyToMany entity relationship using a join table, the name of the join table
JPA Doc
7

javax.persistence.OrderBy

Course { ... @ManyToMany @OrderBy("lastname ASC") public List ... { ... @ManyToMany(mappedBy="students") @OrderBy // ordering by primary key is assumed
JPA Doc
7

MapKeyJoinColumn.table

for a ManyToMany entity relationship or for a OneToMany entity relationship using a join table, the foreign ... table for the map value. If the map is for a OneToMany or ManyToMany entity relationship using a join
JPA Doc
5

javax.persistence.FetchType

See Also: Basic ElementCollection ManyToMany OneToMany ManyToOne OneToOne FetchType EAGER Defines that data
JPA Doc
5

javax.persistence.MapKeyTemporal

with the ElementCollection, OneToMany, or ManyToMany annotation. Example: @OneToMany @MapKeyTemporal(DATE
JPA Doc
5

javax.persistence.OrderColumn

ManyToMany relationship or on an element collection. The OrderColumn annotation is specified