Home » Search

About cascade

31-40 of 200Refresh
Manual
11

DELETE Queries in JPA/JPQL

As explained in chapter 2, entity objects can be deleted from the database by: Retrieving the entity objects into an EntityManager. Removing these objects from the EntityManager within an active transaction, either explicitly by calling the remove method or implicitly by a cascading operation
JPA Doc
11

JPA Annotations for Relationships

annotation enables configuring cascade and fetch policy, using the following enum types: Additional
JPA Doc
11

javax.persistence.OneToMany

that is the owner of the relationship. When the collection is a java.util.Map, the cascade element ... // In Customer class: @OneToMany(cascade=ALL, mappedBy="customer") public Set ... .Order.class, cascade=ALL, mappedBy="customer") public Set getOrders() { return
JPA Doc
8

javax.persistence.OneToOne

[] cascade (Optional) The operations that must be cascaded to the target of the association. (Optional) The operations that must be cascaded to the target of the association. By default no operations are cascaded. Default value: {} Since: JPA 1.0 FetchType fetch (Optional) Whether the association
JPA Doc
7

javax.persistence.ManyToMany

See Also: JoinTable CascadeType[] cascade (Optional) The operations that must be cascaded to the target of the association. (Optional) The operations that must be cascaded to the target of the association. When the target collection is a java.util.Map, the cascade element applies to the map value. Defaults
JPA Doc
7

javax.persistence.ManyToOne

CascadeType[] cascade (Optional) The operations that must be cascaded to the target of the association. (Optional) The operations that must be cascaded to the target of the association. By default no operations are cascaded. Default value: {} Since: JPA 1.0 FetchType fetch (Optional
Forum
5

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 ... (cascade = CascadeType.REFRESH) @NotNull private List selectedPersons = new ArrayList
Issue
4

NullpointerException when execute a commit

.objectdb.o.TVS.cascade(TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb.o.STM.E(STM ... :169) at com.objectdb.o.TVS.cascade(TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com ... ">     <cascade>      <cascade-all />     cascade>      
Issue
4

Freeze during save

.o.TVS.cascade(TVS.java:157) at com.objectdb.o.OBM.aO(OBM.java:283) at com.objectdb ... it should show it. If there is no deadlock, it could be (according to the stack trace) an issue with cascading a persist operation ... . During cascading objects are tracked and every object is handled only once to avoid an endless loop
Forum
3

Persist error @ManyToMany how to define correct entities relationships

private long id; @ManyToMany(cascade=CascadeType.PERSIST) private List categories ... ; @ManyToMany(cascade=CascadeType.PERSIST) private List categories = new ... private long id; @ManyToMany(cascade=CascadeType.PERSIST) private List