About cascade

61-70 of 200Refresh
Forum
2

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

implements Serializable {     @Id @GeneratedValue private long id;     @OneToOne(fetch=EAGER, cascade=PERSIST) public Ostrich ostrich;     @ManyToMany(cascade=ALL) public Map entries ... that the cascading annotations would be sufficient to cause everything to be persisted (and that's worked
Issue
2

NullPointer when accessing persistent field

.java:156) at com.objectdb.o.TVS.j(TVS.java:169) at com.objectdb.o.TVS.cascade(TVS.java:156) at com ... dependencies )   The code being called is accessing a map declared as follows; @OneToMany(cascade ... ) at com.objectdb.o.TVS.j(TVS.java:169) at com.objectdb.o.TVS.cascade(TVS.java:156) at com.objectdb.o
Forum
2

OptimisticLockException

cascade the refresh (ie for collections held by the object modified)? Can cascading refresh be set in ... . Cascading refresh is set by annotations. sorry for all the questions but this is still unclear ... cascading refreshes. ie: I think I have: pessimistic locking + enhancement + refresh on all objects
Forum
2

collection of embedded objects

@Entity, does the remove cascade through the whole collection? 3. Is searching through collections ... annotation on the collection to specify fetch policy. Currently ObjectDB doesn't cascade operations unless it is explicitly required. Since you cannot specify cascade in @ElementCollection
Forum
2

Database Inconsistency or corruption

with Cascade.ALL. That is, when merging an ObjectValue, the merge operation is propagated ... with cascade, so I persisted manually all referenced Attributes and the corresponding values. But I still got ... ;   @javax.persistence.OneToMany(cascade=javax.persistence.CascadeType.ALL, fetch =   javax
Forum
2

Is it ok to put list or map of embeddable objects in entity ?

: @Embeddable public class EmbeddableB implements Serializable { (...) @OneToMany(cascade ... are cascade operations not supported with Embeddable classes ? One more thing I discovered recently ... (cascade = CascadeType.ALL)     List embeddableBList; } It is not portable JPA
Issue
2

Best practise loading big data

public long Id = 1; @OneToMany (cascade = CascadeType.ALL, targetEntity = MyStepBlock ... <>(); } @Entity static class MyStepBlock { @OneToMany (cascade = CascadeType.ALL, targetEntity ... ;         @OneToMany(cascade=CascadeType.ALL)         List stepBlocks
Forum
1

@OneToMany(fetch = FetchType.LAZY) list is always null

") private int id; @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) private List ... = FetchType.LAZY, cascade = CascadeType.ALL) private ByteData bydaData; public Parent ... ) private int id; @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL) private OTO oto
Forum
1

A lot of ENT and SIV instances which are not cleared by GC

.objectdb.o.TVS.cascade(TVS.java:156) at com.objectdb.o.TVS.g(TVS.java:105) at com.objectdb.o.TVS.g ... cascade=CascadeType.DETACH or CascadeType.ALL to every relationship because it doesn't detach without it. Following your report we found and fixed (in build 2.6.1_01) a bug in cascading detach
Forum
1

Apparent Lazy Loading issues.

state: "When the collection is a java.util.Map, the cascade element and the orphanRemoval element apply to the map value." This appears to mean that if I have cascade=CascadeType.ALL on a OneToMany map, then the cascade ONLY applies to the values, NOT to the key. This means all keys MUST be created