ObjectDB ObjectDB

Internal Website Search

121-130 of 200 resultsRefresh
5

remove & persist in same transaction => Attempt to reuse an existing primary key value

.getTransaction().begin(); EntityA entity = new EntityA(1); em.persist(entity); em.getTransaction().commit(); System.out.println("load and remove"); em.getTransaction().begin
5

Entity Update - Is the documentation up to date?

transaction. If I subsequently begin and commit a transaction, all my changes seem to be merged ... entities from outside an active transaction. If I subsequently begin and commit a transaction
5

Not able to update records

on your own. Try surrounding your executeUpdate with em.getTransaction().begin() to start ... .getTransaction().begin(); // start the transaction Query query = em.createQuery(createUpdateQuery
5

Updating existing persistence entries

are identified automatically. Of course, you have to begin and commit a transaction (when SAVE is selected ... you very much, for the explanation. I managed to get it working with beginning a transaction and committing it on save. I
5

Like fails if both underscore and percent are used

().entity(StringHolder.class); em.getTransaction().begin(); for(StringHolder item ... ().begin(); em.persist(entry); em.getTransaction().commit(); assertEquals(1
5

Compile time enhancement using build.xml of a Netbeans web application

: <target name="-post-compile">   <echo message="begin ObjectDB enhancer"/>    <java classname="com ... : begin ObjectDB enhancer"/> <java classname="com.objectdb.Enhancer" fork="true" classpath
5

Unique contraint with 2 members

().begin();         em.persist(new MyEntity());         em.getTransaction().commit();         em.getTransaction().begin();         em.persist(new MyEntity());         em.getTransaction().commit
5

Storing objects problem

");      EntityManager em = emf.createEntityManager();               em.getTransaction().begin ... .createEntityManager();               em.getTransaction().begin();      em.persist(router);      em
5

Schema-Update: Rename superclass and remove one subclass

(); // // Persist an entity em.getTransaction().begin(); ChildClassA entity1 = new ChildClassA ... (RenamedSuperClass.class); em.getTransaction().begin(); // do something ChildClassA entityWithID1
1

I can't get cascading delete to work in JDO

();         pm.currentTransaction().begin();         persist(pm);         pm.currentTransaction().commit();         pm.currentTransaction().begin();         delete(pm);         pm.currentTransaction

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