About begin

101-110 of 200Refresh
Forum
1

How to do multithreading with embedded ObjectDB

.getTransaction().begin();         em.persist(p);         em.getTransaction().commit();         em.close ... ();                     em.getTransaction().begin();                     //Query q = em.createQuery("UPDATE Point
Issue
1

Issue with cascade delete & add/remove

.getAddresses().add(new Address("2", "2", "2"));         em.getTransaction().begin();         em ... Contact")             .setMaxResults(1).getSingleResult();         em.getTransaction().begin
Forum
1

Issue with orphanRemoval and multiple EntityManagers

"));         EntityManager em = emf.createEntityManager();         em.getTransaction().begin ... .getTransaction().begin();         //em.merge(originalOrganisation);         em.getTransaction().commit
Issue
1

Issues with JDO Casting & Full Qualified Names

.createEntityManager();   em.getTransaction().begin();   MyEntity entity = new MyEntity();   entity ... ();         em.getTransaction().begin();         MyEntity entity = new MyEntity();         entity
Forum
1

java.lang.UnsupportedOperationException

.getTransaction().begin(); for (Object entity : results)     em.remove(entity); em.getTransaction().commit(); Another option is to run a JDO DELETE query, e.g. em.getTransaction().begin(); em
Forum
1

Join performance in Objectdb

.getTransaction().begin();         for (int i = 0; i < entityCount; i++) {             B b = new B ... population started.");         em.getTransaction().begin();         for (int i = 0; i < entityCount
Forum
1

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

Merge throw exception "Attempt to reuse an existing primary key value"

.createEntityManager();         final int Id = 0;         em.getTransaction().begin();         em.persist(new MyEntity(Id));         em.getTransaction().commit();         em.getTransaction().begin();         em
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