About cascade

71-80 of 200Refresh
Forum
1

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
1

Error 613 - i cant put a list<Athlete> into a Squad object

commit. Annotate the athletes collection using @OneToMany(cascade=CascadeType.PERSIST). Annotate the athletes collection using @OneToMany(cascade=CascadeType.ALL). Set global automatic cascading persist
Forum
1

Global way to set Lazy-loading fetch functionality for all the fields

Hi, for cascading persist, I have 3 choices: - Either locally (@OneToOne(cascade=CascadeType.PERSIST)) - Either at objectdb level (<cascade-persist always="auto" on-persist="false" on-commit="true" />) - Either at JPA global level (orm.xml).   For defining fetch policy, I know the local way
Forum
1

Left join fetch behaviour doesn't retrieve children?

));         }                 @ManyToMany(targetEntity = MyEntityChild.class, cascade = CascadeType ... test case ( multi join fetch + various jpa collection combinaison + various cascade combinaison + merge ... (targetEntity = MyEntityChild.class, cascade = CascadeType.ALL,mappedBy = "myEntity") // Test by adding
Forum
1

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

() + "}" + "[" + id + "]\"" + name + "\"";         }         @ManyToOne(fetch = FetchType.LAZY, cascade ... , mappedBy = "a", cascade = CascadeType.ALL)         List listA_mapped;         @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)         List listB_unmapped;     }     @Entity
Forum
1

mappedBy problem

!!   There was a bug in cascading operations through inverse (mapped by) fields - thank you for your report. Build 07 should fix this problem. Please try it. You will have to add cascade=CascadeType.PERSIST to the mapped by field, unless you have global persist cascade enabled. Using Build 07, I persist
Issue
1

NullPointerException when using multithreading

; @OneToOne(cascade=CascadeType.ALL) private HashMap myMap; } @Embeddable public class EmbeddableA { @OneToOne(cascade=CascadeType.ALL) private ... (cascade=CascadeType.ALL) private HashMap myMap; } I'm am trying
Issue
1

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
1

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
1

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