About cascade

21-30 of 200Refresh
Issue
35

Cascade.ALL with LAZY fetchtype does not clean up all references on remove

Hello, I have a tree of entity classes that reference others using Cascade.ALL in combination with FetchType.LAZY. If I now delete a root entity using EntityManager.remove all leaf nodes will not be deleted. This only applies to the leaf nodes. If I add an additional the behaviour changes
Forum
35

Error during cascaded merge

= "unit", cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.EAGER)     @OrderBy
Forum
35

ObjectDB 2.6.9_06 (embedded): Cascading merge resulting in duplicate objects

This issue maybe related to issue #110 (http://www.objectdb.com/database/issue/110). Because that issue has been closed as "fixed", I am reporting this new issue. This is my class definition: @Entity public abstract class Person {     @OneToMany(fetch=FetchType.EAGER, cascade=CascadeType
Forum
35

Puzzler: Not getting cascades on read from Spring context

I've determined that the database is correctly initialized, looking at it from the Object Explorer, I can run the code that loads the database in a Junit test and it's initializing the children objects correctly, but in the application running in Jetty with Spring, fetching is not cascading
Forum
34

Cascading (persist) with a mix of enhanced and not enhanced entities

Cascading (persist) with a mix of enhanced and not enhanced entities
Manual
33

Deleting JPA Entity Objects

method or implicitly as a result of a cascade operation. Explicit Remove In order to delete an object ... that modify the database require an active transaction. Cascading Remove Marking a reference field ... should be cascaded automatically to entity objects that are referenced by that field (multiple entity objects
Manual
33

Detached Entity Objects

object. Cascading Detach Marking a reference field with CascadeType.DETACH (or CascadeType.ALL, which includes DETACH) indicates that detach operations should be cascaded automatically to entity objects ... ): @Entity class Employee { : @OneToOne(cascade=CascadeType.DETACH) private Address
Manual
33

Retrieving JPA Entity Objects

entity objects. By default, a retrieval operation is automatically cascaded through all the non ... unacceptable. A persistent reference field can be excluded from this automatic cascaded retrieval by ... .EAGER, indicating that the retrieval operation is cascaded through the field. Explicitly specifying
Manual
33

Storing JPA Entity Objects [2011-05-04]

or implicitly as a result of a cascade operation. Explicit Persist The following code stores ... of every reachable object or alternatively by setting automatic cascading persist. Cascading Persist Marking ... that persist operations should be cascaded automatically to entity objects that are referenced by
Manual
33

Storing JPA Entity Objects

or implicitly as a result of a cascade operation. Explicit Persist The following code stores ... of every reachable object or alternatively by setting automatic cascading persist. Cascading Persist Marking ... that persist operations should be cascaded automatically to entity objects that are referenced by