Home » Search

About OneToMany

21-30 of 143Refresh
JPA Doc
11

javax.persistence.JoinColumn

: unidirectional one-to-many association using a foreign key mapping // In Customer class @OneToMany ... getOrders() {return orders;} Since: JPA 1.0 See Also: ManyToOne OneToMany OneToOne JoinTable ... OneToMany mapping using a foreign key mapping strategy, the foreign key is in the table
JPA Doc
11

javax.persistence.MapKeyJoinColumn

: @Entity public class Company { @Id int id; ... @OneToMany ... . If the join is for a map key for a ManyToMany entity relationship or for a OneToMany entity relationship using a join table, the foreign key column is in a join table. If the join is for a OneToMany
JPA Doc
8

javax.persistence.ManyToOne

of the object being referenced. If the relationship is bidirectional, the non-owning OneToMany entity ... is bidirectional, the non-owning OneToMany entity side must use the mappedBy element of the OneToMany ... ; @OneToMany(mappedBy="jobInfo.pm") Collection manages; } Since: JPA 1.0
JPA Doc
8

javax.persistence.MapKeyClass

annotations (OneToMany or ManyToMany). The MapKey annotation is not used when MapKeyClass ... : @Entity public class Company { @Id int id; ... @OneToMany ... @Entity public class Company { @Id int id; ... @OneToMany
JPA Doc
8

javax.persistence.MapKeyColumn

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 OneToMany entity relationship using a foreign key mapping strategy, the map key ... is for a OneToMany or ManyToMany entity relationship using a join table, the name of the join table
JPA Doc
8

MapKeyJoinColumn.table

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

javax.persistence.MapKeyEnumerated

with the ElementCollection, OneToMany, or ManyToMany annotation. If the enumerated type is not ... public Projects getProjects() {...} @OneToMany ... See Also: ElementCollection OneToMany ManyToMany EnumType value (Optional) The type used in mapping a map key enum
JPA Doc
6

javax.persistence.MapKey

. Example 1: @Entity public class Department { ... @OneToMany(mappedBy ... { ... @OneToMany(mappedBy="department") @MapKey(name="name") public
JPA Doc
6

javax.persistence.MapKeyTemporal

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

javax.persistence.OrderColumn

, or reordering affecting the list. The OrderColumn annotation is specified on a OneToMany or ... . Example: @Entity public class CreditCard { @Id long ccNumber; @OneToMany