ObjectDB ObjectDB

Internal Website Search

91-100 of 200 resultsRefresh

"Attempt to lock a non entity object" error

();         Person p = new Person("Ron");         em.getTransaction().begin();         em.persist(p);         em ... ().setRetainValues(true);         em.getTransaction().begin();         p = em.find(Person.class, 1 ... : " + p.name);         em.getTransaction().rollback();         em.getTransaction().begin

EntityTransaction.commit() does not release a pessimistic lock

.getTransaction().begin(); em.persist(new Account(0)); em.getTransaction().commit(); // update EntityManager em1 = emf.createEntityManager(); em1.getTransaction().begin ... .getTransaction().begin(); Account a2 = em2.find(Account.class, 0, LockModeType.PESSIMISTIC_READ

zip file or JAR manifest missing

, that is unnecessary in MySQL. I use ObjectDB exactly because persistence unit is not essential. trans.begin();    ItemList i = new ItemList();    i.setItemname("Beginning");    em.persist(i);    trans.commit ... (){   int iCnt = 10;   while (--iCnt>=0){    trans.begin();    Page uri = new Page();    uri.setsUrl

Remove not working

); EntityManager em = emf.createEntityManager(); em.getTransaction().begin ... (); em.getTransaction().begin(); b = em.find(B.class, 1); em.remove(b ... . transaction.begin get Extent, traverse its entries, delete an object in there // needs a flush

Problem with byte arrays in JDO - ClassCastException

.getPersistenceManager();         // Clear out existing objects         pm.currentTransaction().begin ... .currentTransaction().commit();         pm.currentTransaction().begin();         Example example1 = new

Embedded Entity in EmbeddedId not persisted. Error 631 at select.

(dbName).createEntityManager();         em.getTransaction().begin();         em.persist(new A(new ... it by persisting the B object explicitly: em.getTransaction().begin(); B b = new B(1); em

Problem with byte arrays in JDO - internal exception

(); // Clear out existing objects pm.currentTransaction().begin(); Query query = pm ... ().commit(); pm.currentTransaction().begin(); Example example1 = new Example

Cannot catch a PersistenceException and continue the transaction

but those don't work for me. Begin a new (nested) transaction in another method that will be rolled back instead of the first one- doesn't work. I got a message that it couldn't begin a new transaction

Best practise loading big data

(); // create values em.getTransaction().begin(); MyStepBlockCollection sbc ... = null; long counter = 0; em.getTransaction().begin(); sbc = em.find ... populateDatabase(EntityManager em) {         int valueCount = 0;          em.getTransaction().begin

Negative snapshot user count

;drop");         EntityManager em = emf.createEntityManager();         em.getTransaction().begin ... ();                     em2.getTransaction().begin();                     em2.createQuery(DELETE_QUERY

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