Internal Website Search

11-20 of 200 resultsRefresh

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 ... -java"> @Entity public class PointCollection { @ManyToMany(cascade={PERSIST, REFRESH, MERGE

Cascading merge() leading to "Attempt to persist a reference to a non managed instance" error

some tests with a parent/child relationship and cascading merge() operations. The parent ... ; @ManyToOne(cascade = CascadeType.ALL)     @SuppressWarnings("unused")    ... Yoshimi Takano Thank you for reporting this problem. Cascading merge to new entity objects

OneToMany and cascade delete problem

{ @OneToMany(targetEntity = Offer.class, mappedBy = "product", fetch = FetchType.LAZY, cascade ... is, that after removing product, all "connected" offers are also removed (cascade). After that, when I iterate ... that the Offer class and cascading delete from Product

Cascading delete

Is there a configuration parameter to set this? dmoshal David Moshal You can set cascade delete cascading_remove">using annotations ... configuration. You cannot set global cascade delete since that will be too risky

Memory leak while merging parent with No Cascade annotation with children

and watch the "Memory Used" by comparing Cascade.ALL (or Cascade.MERGE ) to nothing. cascade = {               

Cascade type annotaion on an embeddable type

cascading is not required for the embedded objects themselves. There could be some specific case ... > is needed and it is related to cascading. If the embedded object contains a reference to an entity object with cascading annotation, it will be ignored by ObjectDB (this could be changed in

I can't get cascading delete to work in JDO

I enclose a Netbeans project which demonstrates the problem.  Cascading persist works, but cascading delete does not, leaving orphan objects. sjzlondon Steve Zara Thank you for this report. Apparently cascading delete has never been implemented in ObjectDB

New entity objects are duplicated on merge cascading

When merge is cascaded to a new entity object that has not been persisted ... ;            @OneToMany(cascade= CascadeType ... , when the duplicated object is referenced from another new / dirty entity object by a reference with cascading

Sometimes cascade persist does not work during commit

cascading. But sometimes the cascading doesn't work correctly, so that entities B are not persisted. // persist configuration: <cascade-persist always="auto" on-persist="true" on-commit="true ... ; @OneToMany (cascade = {CascadeType.ALL }, orphanRemoval = true) Set<B> blist

Issue with cascade delete & add/remove

; Contact. Contact keeps a collection of Address which cascades deletes (orphanRemoval=true ... of a Contact when we delete the Contact? Is that cascaded or do we need to clear the collection first ... ;  private String name = null;         @OneToMany(cascade