Home » Search

About cascade

31-40 of 195Refresh
JPA Doc
13

JPA Annotations for Relationships

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

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
9

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
8

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
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 ... (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>      
Forum
4

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
Forum
4

persisting object with long[][] arrays of array

= FetchType.EAGER, cascade = CascadeType.ALL) public long[] time;     @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL) private long[][] a1;     @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL) private long[][] a2;     @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType
JPA Doc
3

CascadeType.ALL

Enum Constant javax.persistence.CascadeType ALL Cascade all operations Since: JPA 1.0