About begin

121-130 of 200Refresh
Forum
1

Merge with Parent/Child entities not possible

();   entityManager.getTransaction().begin();   entityManager.persist(parentEntity);   parentEntity ... .assertEquals(4, parentEntity.getChildren().size());   entityManager.getTransaction().begin
Forum
1

Multi-thread access to single EM's entities

);         em.getTransaction().begin();         em.persist(pointless);         em.getTransaction().commit();         em.getTransaction().begin();           Thread t = new Thread(new Runnable
Forum
1

multiple LEFT JOINs do not work as expected

();         em.getTransaction().begin();         persistTree(em, null, 2);         em.getTransaction ... .createEntityManager(); em.getTransaction().begin(); persistTree(em, null, 2, "root
Issue
1

Negative snapshot user count

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

Not able to update records

surrounding your executeUpdate with em.getTransaction().begin() to start the transaction and em ... ); EntityManager em = emFactory.createEntityManager(); em.getTransaction().begin(); // start
Forum
1

ObjectDB CRUD Examples

")); EntityManager em = emf.createEntityManager(); em.getTransaction().begin ... ")); EntityManager em = emf.createEntityManager(); em.getTransaction().begin
Forum
1

OutofMemory error with Object DB 2.0

 is used to begin the transaction. With objectdb 2.x do we need to close the PersistentManager ... && !transaction.isActive()) {                      transaction.begin
Forum
1

Persisting collection where members are subclasses

.getChildren()); entityManager.getTransaction().begin(); entryDao.makePersistent(f ... .addChild(new Folder("C"), "C");                em.getTransaction().begin();         em.persist(f
Forum
1

persisting object with long[][] arrays of array

.getTransaction().begin();         emg.persist(obj);         emg.getTransaction().commit();         emg ... ),                 random2(n),                 random2(n));         emg.getTransaction().begin();         emg
Forum
1

pesimistic Lock semantic

(); pm1.currentTransaction().setOptimistic(false); pm1.currentTransaction().begin(); long ... .currentTransaction().begin(); Picture picture2 = null; try { picture2 = (Picture) pm2.getObjectById