Home » Search

About cascade

71-80 of 200Refresh
Forum
2

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
2

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
2

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
2

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
2

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

significant performance decrease

="false" /> <cascade-persist always="auto" on-persist="false" on-commit="true" /> cascade=CascadeType.REMOVE) public List properties = new ArrayList ... = new ArrayList(); @OneToMany(fetch=FetchType.LAZY,cascade=CascadeType.REMOVE
Forum
2

Storing objects problem

= interfaceMy;   } } } Your code persists only the root object. If you want to cascade the persist ... an annotation to a reference:   @OneToMany(cascade=CascadeType.PERSIST)   private List children; You may also specify cascading persist globally as explained in the manual. kiki