Home » Search

About mappedBy

61-70 of 80Refresh
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

Problem with merging / persisitng objects with @Embeddable field

.class, mappedBy = "productDemands") List productSets;   There were some changes (fixes) in
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
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

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

How to delete M2M relationship?

In user model class I have the following: public class User implements Serializable {     @Id     @GeneratedValue(strategy = GenerationType.AUTO)     private Long id;     @ManyToMany(mappedBy = "attendees", cascade = CascadeType.ALL)     @Cascade(org.hibernate.annotations.CascadeType
Forum
1

Extra uninitialised entities spawned on merge()

ArrayList();         @OneToMany(mappedBy = "owner",         cascade = CascadeType
Forum
1

Cannot sort descending, when ordering by caluculated float in a method

: @Entity public class Invoice { @OneToMany(mappedBy = "invoice", fetch= FetchType.EAGER