Internal Website Search

61-70 of 200 resultsRefresh

Error 613 - i cant put a list into a Squad object

> Annotate the athletes collection using @OneToMany(cascade=CascadeType ... (cascade=CascadeType.ALL). Set cascading_persist">global automatic cascading persist. See the

Items in list are doubled, when the entity class is not enhanced

;       cascade= CascadeType.ALL,orphanRemoval=true) List ... > According to JPA - the merge operation is ignored for Customer - but cascaded ... because of cascading from Customer. The result is 2 Item

Mysterious "Attempt to persist a reference to a non managed instance" error

;     @OneToOne(fetch=EAGER, cascade=PERSIST) public Ostrich ostrich;     @ManyToMany(cascade=ALL) public Map<String, Index> entries;     public Index ... that the cascading annotations would be sufficient to cause everything to be persisted

Storing objects problem

> Your code persists only the root object. If you want to cascade the persist operation to referenced ... >   @OneToMany(cascade=CascadeType.PERSIST)   private ... #global_cascading_persist">cascading persist globally as explained in the manual. support Support

ObjectDB JDO - foreign key constraints

>Also, how can I control cascading updates and deletes in JDO? There seems to exist a @ForeignKey ... to it). Regarding cascading operations, even if you use JDO you can still use JPA annotations to set cascading operations. Alternatively you may be able to listen to JDO lifecycle events

collection of embedded objects

the parent @Entity, does the remove cascade through the whole collection? Currently ObjectDB doesn't cascade operations unless it is explicitly required. Since you cannot specify cascade in @ElementCollection you will have to annotate the embedded

Database Inconsistency or corruption

with Cascade.ALL. That is, when merging an ObjectValue, the merge operation is propagated ... thought first, that ObjectDB has a problem with cascade, so I persisted manually all referenced ... >   private Project project;   @javax.persistence.OneToMany(cascade=javax

NullPointer when accessing persistent field

.j(TVS.java:169) at com.objectdb.o.TVS.cascade(TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476 ... class="pre-java"> @OneToMany(cascade=CascadeType.ALL, mappedBy="z_component") @MapKey(name="z ... .o.TVS.cascade(TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb.o.STM.D(STM.java

Best practise loading big data

(cascade = CascadeType.ALL, targetEntity = MyStepBlock.class, fetch = FetchType.LAZY ... { @OneToMany (cascade = CascadeType.ALL, targetEntity = MyStep.class, fetch = FetchType.LAZY ... ;   @OneToMany(cascade=CascadeType.ALL)         List<StepBlock>

Tracking changes to new collections (in enhancement mode) after flush

= "uid") private String uid; @OneToOne (fetch = FetchType.EAGER, cascade = {CascadeType ... .EAGER, cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private HashMap<String, List ... , cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private ModelElementImpl element