ObjectDB ObjectDB

Internal Website Search

1-10 of 118 resultsRefresh
156

Selective merge/cascade of detatched entity

Company. Each salesman is given many numerical targets for the new company. I then need to merge each ... ); for (Salesman s : salesmen) em.merge(s); This appears to have the effect of checking and merging ... objects attached to each Salesman, and each Salesman has hundreds of targets for each Company, this merge
139

Merge Issue: Attempt to reuse an existing primary key value

a feature on an ordinary merge operation. This is the test case ( work in 2.4.6 version ) : 2 parents ... ");         EntityManager em = null ;         // Merge parent1         em = emf ... ("child1"));         em.merge(e1);         em.getTransaction().commit();         em.clear
133

Extra uninitialised entities spawned on merge()

_MERGE = true;     /**      * @param args the command line arguments      */     public static ... );                 if (DO_PERSIST_BEFORE_MERGE) {             em.getTransaction().begin();             em.persist(e ... ();         em.merge(root);         em.getTransaction().commit();         TypedQuery<Element> query = em
130

Merge on detached entities

Hello, it is possible to merge detached entities? There are some attached entities which load from ... the fields of the detached entities will be changed and a merge by em.merge(entity) will be saved the entities. Can this works correctly? How are the rules of the merge process? Do the changed fields
129

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

with a parent/child relationship and cascading merge() operations. The parent has an application defined id ... ();     tx.begin();     em.merge(new Child(new Parent("Joe")));     em.merge(new Child(new Parent("Tim ... . Cascading merge to new entity objects (the Parent instances in your code) is currently broken
124

EntityManager.merge gives EntityNotFoundException

Just started using objectdb (2.3.4). Calling EntityManager.merge for a new (non-managed) object ... .EntityNotFoundException Entity is not found: classdb.Test#'id' (error 631) at com.objectdb.jpa.EMImpl.merge(EMImpl.java:456) at classdb.Test.main(Test.java:32) thepigs Matt Pepar You are right, merging non
122

NullpointerException when execute a merge

that is persisted with "merge()". Then we want to persist “merge()” an new object of a different type ... .onObjectDBError(OBC.java:1503) at com.objectdb.jpa.EMImpl.merge(EMImpl.java:526) at com.btc.ep.dal ... ) at com.objectdb.jpa.EMImpl.merge(EMImpl.java:523) ... 43 more But if we use enhanced classes
71

merge(entity)

Method javax.persistence.EntityManager T merge( T entity ) Merge the state of the given entity into the current persistence context. Parameters: entity - entity instance Returns: the managed instance that the state was merged to Throws: IllegalArgumentException - if instance is not an entity or
70

CascadeType.MERGE

Enum Constant javax.persistence.CascadeType MERGE Cascade merge operation Since: JPA 1.0
54

Detached Entity Objects

the database unless modified detached objects are merged back into an EntityManager to become managed ... invocation of rollback or by a commit failure. Explicit Merge Detached objects can be attached to any EntityManager by using the merge method: em.merge(employee); The content of the specified

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support