Home » Search

About mappedBy

1-10 of 80Refresh
Manual
105

JPA Entity Fields

; } @Entity public class Department { @OneToMany(mappedBy="department") Set employees; } The mappedBy element (above) specifies that the employees field is an inverse field ... the Department entity): SELECT e FROM Employee e WHERE e.department = :d The mappedBy element defines
JDO Doc
74

Element.mappedBy

Annotation Element javax.jdo.annotations.Element String mappedBy Name of the member in the target class that forms a bidirectional relationship with this member. Returns: name of the member in the target class that forms a bidirectional relationship with this member Default value: "" Since: JDO 2.1
JDO Doc
74

Key.mappedBy

Annotation Element javax.jdo.annotations.Key String mappedBy Name of a member in the value class where this key is stored. Returns: the name of a member in the value class where this key is stored Default value: "" Since: JDO 2.1
JPA Doc
74

ManyToMany.mappedBy

Annotation Element javax.persistence.ManyToMany String mappedBy The field that owns the relationship. Required unless the relationship is unidirectional. Default value: "" Since: JPA 1.0
JPA Doc
74

OneToMany.mappedBy

Annotation Element javax.persistence.OneToMany String mappedBy The field that owns the relationship. Required unless the relationship is unidirectional. Default value: "" Since: JPA 1.0
JPA Doc
74

OneToOne.mappedBy

Annotation Element javax.persistence.OneToOne String mappedBy (Optional) The field that owns the relationship. This element is only specified on the inverse (non-owning) side of the association. Default value: "" Since: JPA 1.0
JDO Doc
74

Order.mappedBy

Annotation Element javax.jdo.annotations.Order String mappedBy Name of a field or property in the target class that acts as the ordering field or property for this member. Return the name of the field or property in the target class Default value: "" Since: JDO 2.1
JDO Doc
74

Persistent.mappedBy

Annotation Element javax.jdo.annotations.Persistent String mappedBy Name of the related member in the other class where this value is mapped (bidirectional relationship). Returns: the related member in the other class Default value: "" Since: JDO 2.1
JDO Doc
74

Value.mappedBy

Annotation Element javax.jdo.annotations.Value String mappedBy Name of a member in the key class where this value is stored. Returns: the name of a member in the key class where this value is stored Default value: "" Since: JDO 2.1
Issue
26

new objects not available in mappedBy associations

Given a mappedBy association: e.g: @OneToMany(mappedBy="department") public List mappedby tag maps to: SELECT e from EMPLOYEE e WHERE e.department=department ... /persistence/retrieve#Retrieval_by_Refresh > If the mappedby tag maps to: > SELECT e from EMPLOYEE e