About mappedBy

71-80 of 81Refresh
Forum
1

Merge Issue: Attempt to reuse an existing primary key value

.ALL, mappedBy = "parent")         @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType
Forum
1

Merge with Parent/Child entities not possible

= FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "parent", orphanRemoval = true)   @MapKey
Forum
1

Mysterious "Attempt to persist a reference to a non managed instance" error

= {CascadeType.ALL}, targetEntity = Passenger.class, mappedBy = "buses")   private Set
Forum
1

OrphanRemoval not working?

Dear all, I have entities Invoice and InvoiceItem, their relation is defined: public class Invoice implements Serializable { ... @OneToMany(mappedBy="invoice", fetch=FetchType.EAGER,              orphanRemoval=true, cascade=CascadeType.ALL) private List invoiceItemList
Forum
1

Possible issue for JPQL IS EMPTY expression

bidirectional and not a field: @Entity class MyEntity { @OneToMany(mappedBy="myentity") ArrayList
Forum
1

Problem with @OrderBy

When I use @OrderBy and supply multiple order fields I get and error when ObjectDB Explorer expands a instance of the entity. Example code: @Entity @Table(name="Defects", schema = "myDB") public class Defects implements Serializable {     ...     ...     @OneToMany(mappedBy="defect
Forum
1

Problem with merging / persisitng objects with @Embeddable field

.class, mappedBy = "productDemands") List productSets;   There were some changes (fixes) in
Forum
1

Problem with queries on lists with reverse mapping

query. If the "team" is omitted from the player and targetEntity = Player.class, mappedBy = "team
Forum
1

Remove not working

(mappedBy="a", cascade=CascadeType.REMOVE) private List bs; } @Entity
Forum
1

Removing an element from an @OneToMany doesn't work

Hello. I have a Parent and Child entities. // in the parent @OneToMany(mappedBy = "parent", fetch = FetchType.EAGER, cascade = CascadeType.ALL) private List children; // in the child @ManyToOne private Parent parent; Somewhere I do this: parent.getChildren().remove(0