About mappedBy

11-20 of 81Refresh
Forum
23

LEFT (OUTER) JOIN problem when mappedBy is defined

invoices without items! Only invoices with items. When I remove mappedBy from @OneToMany annotation, LEFT ... (); } } @Entity public class Invoice { @OneToMany(mappedBy = "invoice", fetch= FetchType.EAGER
Forum
23

mappedBy problem

If I put the mappedBy element to the @OneToMany, the owned side (the many side) will never persist ! for example @Entity public class Employee { @Id @GeneratedValue(strategy = GenerationType ... ,mappedBy="employee") public List
addresses; } @Entity public class Address
JPA Doc
12

javax.persistence.ManyToMany

side. If the relationship is bidirectional, the non-owning side must use the mappedBy element of the ManyToMany ... is the owner of the relationship, the non-owning side must use the mappedBy element of the ManyToMany ... (".") notation syntax must be used in the mappedBy element to indicate the relationship attribute
JPA Doc
11

javax.persistence.OneToOne

. If the relationship is bidirectional, the non-owning side must use the mappedBy element of the OneToOne annotation ... is on the owning side of the relationship, the non-owning side must use the mappedBy element of the OneToOne ... syntax must be used in the mappedBy element to indicate the relationship attribute
JPA Doc
10

javax.persistence.OneToMany

; otherwise the target entity class must be specified. If the relationship is bidirectional, the mappedBy element ... , the mappedBy element must be used to specify the relationship field or property of the entity ... // In Customer class: @OneToMany(cascade=ALL, mappedBy="customer") public Set
JPA Doc
9

javax.persistence.ManyToOne

side must used the mappedBy element to specify the relationship field or property of the entity ... is bidirectional, the non-owning OneToMany entity side must use the mappedBy element of the OneToMany ... side of the relationship. The dot (".") notation syntax must be used in the mappedBy element
Forum
6

EntityManager.refresh takes a long time

itself with a cascade refresh: @OneToMany(mappedBy = "person", cascade = CascadeType.ALL) private List openIdAuths = new ArrayList<>(); @OneToMany(mappedBy = "person", cascade = CascadeType ... <>(); @ManyToMany(mappedBy = "selectedPersons", cascade = CascadeType.REFRESH) @NotNull
JPA Doc
6

javax.persistence.MapKey

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

javax.jdo.annotations.Element

) should be indexed. Default value: "" Since: JDO 2.1 String mappedBy Name of the member in the target class
JDO Doc
4

javax.jdo.annotations.Key

.1 String mappedBy Name of a member in the value class where this key is stored. Name of a member in