Internal Website Search
51-60 of 200 resultsRefreshMerge Issue: Attempt to reuse an existing primary key value relationship with Cascade.ALL constraint. public final class ... ; private String name; @ManyToMany(cascade ... ; static class A { @OneToMany(cascade | |
How to Remove records from many to many relationship tables in JPA { ... @ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.PERSIST) private List<Conclusion ... { .... @ManyToMany( fetch = FetchType.LAZY, cascade = CascadeType.PERSIST) private List< ... ="pre-java"> @Cascade(org.hibernate.annotations.CascadeType.DELETE_ORPHAN) and i applied that as | |
JPA vs JDO - which is more efficient for OneToMany queries? field (again) or refresh it. 2) You have to persist both unless you have automatic cascade persist. In JDO all fields cascade persist operations automatically. In JPA you have to set ... should be preferred. support Support For JPA, how does one set automatic cascade globally | |
Eclipse plugin problem (using ObjectDB as a separate bundle) cascaded automatically to referenced objects by default. Therefore, when you persist an object ... . Alternatively, you can turn cascading persist on - including globally (as in JDO) - cascading_persist">see the manual. support Support | |
Optimistic locking: prevent version increment on entity collection attribute; @OneToMany(mappedBy="document", cascade=CascadeType.PERSIST) private List<Reading> readings = new ArrayList<Reading>(); The cascade ... > support Support Ok, thank you for that. I have cascade persist set at the database | |
EntityManager JPA or JDO impl and different behavior; @OneToMany(cascade=CascadeType.PERSIST, fetch=FetchType.EAGER)   ... ; @OneToMany(cascade=CascadeType.ALL,   ... .Map, the cascade element and the orphanRemoval element apply to the map value." This appears to mean | |
OptimisticLockException> Next question: how do I automatically cascade the refresh (ie for collections held by the object modified)? Can cascading refresh be set in the conf file? dmoshal David Moshal Cascading refresh is cascading_refresh">set by | |
Issue with orphanRemoval and multiple EntityManagers; private long id; @OneToMany(cascade ... demonstrated 2 issues: Duplication of new objects during cascading merge ... workarounds (i.e. avoiding cascading merge to new objects). Actually in this test merge is not really | |
CascadeType.DETACH Enum Constant javax.persistence.CascadeTypeDETACH Cascade detach operation | |
OneToOne.orphanRemoval that have been removed from the relationship and to cascade the remove operation to those entities. |