About cascade

91-100 of 200Refresh
Forum
1

Extra uninitialised entities spawned on merge()

ArrayList();         @OneToMany(mappedBy = "owner",         cascade = CascadeType ... , whereas others might thown an exception immediately. The merge() operation can be optionally cascaded in
Forum
1

Foreign key constraint issue

    @GeneratedValue     private long id;     @ManyToOne(optional = false, cascade = {})     @JoinColumn(name ...     private long id;     @OneToMany(cascade = {CascadeType.MERGE, CascadeType.REMOVE}, mappedBy
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
Issue
1

Internal exception

.TVS.cascade(TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb.o.STM.E(STM.java:408 ... to cascade persist operation from unknown reason during that flush. Any more information could help
Forum
1

Is it possible to remove parent/child entities without refresh?

  private long id;   @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy ... {   @Id   @GeneratedValue   private long id;   @ManyToOne(fetch = FetchType.LAZY, cascade
Forum
1

Is there any restriction when using fetch=FetchType.LAZY ?

in object declaration @OneToMany(fetch=FetchType.EAGER, cascade = CascadeType.ALL) private ... @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL) private LinkedList
Issue
1

java.lang.NullPointerException during access a field, only if the classes enhanced

.o.TVS.cascade(TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb ... (TVS.java:169) at com.objectdb.o.TVS.cascade(TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476
Forum
1

LAZY @ManyToOne field functions as EAGER

);         }         @ManyToOne(fetch=FetchType.LAZY, cascade= CascadeType.ALL)         C cLazy;                 @ManyToOne(fetch=FetchType.EAGER, cascade= CascadeType.ALL)         C cEager
Forum
1

Lazy loading does not work - crud takes long

, generator = "PROJECT_SEQUENCE")     private Long id;     ..     ..     @OneToMany(cascade ... datapoint;         @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, mappedBy
Forum
1

Merge on detached entities

of referenced entities was null - but just because that collection was not yet loaded. The cascade type ... regarding fetch types and cascades. Kind regards Because all the owned persistent fields (excluding