About collection

issue

Issue with cascade delete & add/remove

Hi, Please see the attached sample project (important: classes need to be enhanced as done in the pom.xml file). ... have two entities Address & Contact. Contact keeps a collection of Address which cascades deletes (orphanRemoval=true) to its ... what we want. However, when removing an Address from the collection and immediately adding it again to the collection (within one ...

 
api-jdo

setCandidates(pcs)

Set the candidate Collection to query.(Method of javax.jdo.Query)

 
api-jdo

evictAll(pcs)

Mark a Collection of instances as no longer needed in the cache.(Method of javax.jdo.PersistenceManager)

 
api-jpa

javax.persistence.PessimisticLockScope

Defines the values of the javax.persistence.lock.scope property for pessimistic locking.(Enum of JPA)

 
api-jdo

newQuery(cls, cln)

Create a new Query with the candidate Class and Collection.(Method of javax.jdo.PersistenceManager)

 
api-jpa

javax.persistence.metamodel.ManagedType

Instances of the type ManagedType represent entity, mapped superclass, and embeddable types.(Interface of JPA)

 
api-jdo

deletePersistentAll(pcs)

Delete a Collection of instances from the data store.(Method of javax.jdo.PersistenceManager)

 
api-jdo

makeTransactionalAll(pcs)

Make a Collection of instances subject to transactional boundaries.(Method of javax.jdo.PersistenceManager)

 
api-jdo

newQuery(cls, cln, filter)

Create a new Query with the Class of the candidate instances, candidate Collection, and filter.(Method of javax.jdo.PersistenceManager)

 
api-jpa

javax.persistence.metamodel.MappedSuperclassType

Instances of the type MappedSuperclassType represent mapped superclass types.(Interface of JPA)