Home » Search

About cascade

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

@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
2

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
2

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

Dirty checking

to manually save each one. Question: What's the best way to cascade persistence of Entities ... to discuss cascading, as it is not directly related to the subject of this forum thread ("Dirty checking ... them Entities instead. will move cascading discussion to a new thread. thanks   dmoshal
Forum
2

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") vs. generic classes with interfaces: detailed investigation

:161) at com.objectdb.o.TVS.j(TVS.java:169) at com.objectdb.o.TVS.cascade(TVS.java:156) at com ... .cascade(TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb.o.STM.E(STM.java:411 ... (project); //rely on Cascade all on ownedElements. The reported error with EnumValue::setOldValue
Issue
2

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

, which using a serious of cascading lazy builder methods (with complex entity building and wiring ... // of entities using cascading lazy creation methods. } return project ... do other builder stuff here for project .. // before using in other cascading lazy creation methods
Forum
2

Performance in large transactions

MyEntity {   @OneToMany(cascade = CascadeType.ALL)   private List list = new ArrayList ... {         @OneToMany(cascade = CascadeType.ALL, mappedBy = "ownerEntity")         private List ... floats;     }     @Entity     public static class MyEntity {         @OneToMany(cascade
Forum
2

Remove not working

) at com.objectdb.o.TVS.j(TVS.java:169) at com.objectdb.o.TVS.cascade(TVS.java:156) at com.objectdb.o ... (mappedBy="a", cascade=CascadeType.REMOVE) private List bs; } @Entity ... because the removal of A is cascaded to removal of a B instance that has already been removed earlier in the same