About cascade

manual

Detached Entity Objects

Explains detached entity objects and how to work with detached objects in JPA, including merging them into an EntityManager.... DETACH CascadeType.DETACH enum constant Cascade detach operation See JavaDoc Reference Page... (or ... . ALL CascadeType.ALL enum constant Cascade all operations See JavaDoc Reference Page... , which ...

 
manual

Storing JPA Entity Objects

Explains how to use JPA to store (persist) entity objects in the database.... Page... method or implicitly as a result of a cascade operation. This page covers the following topics: ... PERSIST CascadeType.PERSIST enum constant Cascade persist operation See JavaDoc Reference Page... (or ...

 
manual

Deleting JPA Entity Objects

Explains how to use JPA to delete (remove) entity objects from the database.... Page... method or implicitly as a result of a cascade operation. This page covers the following topics: ... REMOVE CascadeType.REMOVE enum constant Cascade remove operation See JavaDoc Reference Page... (or ...

 
manual

Retrieving JPA Entity Objects

Explains how to use JPA to retrieve entity objects from the database.... CascadeType.REFRESH enum constant Cascade refresh operation See JavaDoc Reference Page... (or ... . ALL CascadeType.ALL enum constant Cascade all operations See JavaDoc Reference Page... , which ...

 
manual

Entity Management Settings

Explains settings and performance tuning of JPA entities in ObjectDB, the fast Java object database for JPA/JDO.... serialization = "false" /> <cascade-persist always = "auto" on-persist = "false" on-commit ... The <persist> element The <cascade-persist> element The <dirty-tracking> element ...

 
api-jpa

javax.persistence.CascadeType

Defines the set of cascadable operations that are propagated to the associated entity.(Enum of JPA)

 
api-jpa

OneToOne.cascade

(Optional) The operations that must be cascaded to the target of the association.(Annotation Element of javax.persistence.OneToOne)

 
forum_thread

Cascading makeTransient

Hi! We have a memory leak in our app because of ObjectDBs __odbTracker fields. The situation is that we read the objects from the DB (many and large objects of class A) and then keep in the application cache only some embedded parts of those objects (let's call them class B). This application cache should work independently on the DB as if it contained transient objects. #1 2015-07-03 10:50 Hi! We have a memory leak in our app because of ObjectDBs __odbTracker fields. The situation is t ...

 
forum_thread

Cascading persistence through an inverse field

Hi! I was playing with cascading persistence with @ManyToMany and inverse @ManyToMany fields, and I noticed that I can only get cascading persistence in one direction. If the "owner" of the relationship is persistent, then objects that are added to the relationship are automatically made persistent. However, I can not get this to work the other way around. I would also like the relationship owner to be persisted if a persisted object is added on the owner side. I have included a minimal example: ... { @ ManyToMany ( cascade = { PERSIST , REFRESH , MERGE } ) ... ManyToMany ( mappedBy = "points" , cascade = { PERSIST , REFRESH , MERGE } ) ...

 
forum_thread

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

Hello. I have a JSF application (Glassfish 4, Java 8, ObjectDB 2.6.0). In some time the heap is getting 95% full with java.lang.OutOfMemoryError: GC overhead limit exceeded.  The first screenshot from VisualVM shows used heap during a 1000 requests stress test. The second shows that after this test there are many com.objectdb.o.ENT and com.objectdb.o.SIV instances. Why isn't it cleaned? I use simple EJB managers containing EntityManagers. On bean's PreDestroy and in servlet's i make entityManager.clear(); ... com.objectdb.o.TVS.j(TVS.java:169) at com.objectdb.o.TVS.cascade(TVS.java:156) at com.objectdb.o.TVS.g(TVS.java:105) at ... of this entities from another ones. Also I've added cascade=CascadeType.DETACH or CascadeType.ALL to every relationship ...