About begin

121-130 of 200Refresh
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
Forum
1

PostUpdate collection null

.createEntityManager();         em.getTransaction().begin();         MyEntity e = new MyEntity(1);         e ... .createEntityManager();         e = em.find(MyEntity.class, 1);         em.getTransaction().begin();         e
Issue
1

preUpdate-methods are called when there is no change

Dear Support Team, we ran into some difficulties with a database. When fetching a entity using the EntityManager and afterwards calling "iterator().next()" a transaction begin/commit will end up in ... ().begin(); connection.getTransaction().commit(); // --> will result in a call of @PreUpdate
Forum
1

Problem with byte arrays in JDO - ClassCastException

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

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
Forum
1

Rollback after commit fail

Hi, I have question regarding transaction management in ObjectDB. Consider following scenario: Thread 1: try{ EntityManager em = emf.createEntityManager(); em.getTransaction.begin ... (); em.getTransaction.begin() persist object2 persist object1 em.getTransaction
Forum
1

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