About begin

131-140 of 200Refresh
Issue
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
Forum
1

Should I be able to persist a JFrame (or gui components in general)?

a; a = new NewJFrame(); a.setVisible(true); em.getTransaction().begin ... .getTransaction().begin(); em.persist(a); em.getTransaction().commit(); System.out.println
Issue
1

Sometimes the ObjectDB throws an internal expeption if a persist() was executed

without ObjectDB lizense. At the beginning of the test (and our application), we add ... activation-code).   The problem is now that we don't see the exception, because at the beginning
Issue
1

spuriously objectdb objects have null references

Object(); public static void begin(EntityManager threadEntityManager){ synchronized(lockBegin){ try { threadEntityManager.getTransaction().begin(); } catch (Exception e
Forum
1

Storing objects problem

.createEntityManager();               em.getTransaction().begin();           for(Device dev : deviceList ... ");      EntityManager em = emf.createEntityManager();               em.getTransaction().begin
Issue
1

Threaded Test - Failed to commit transaction: Unexpected internal exception

) {             EntityManager em = _emf.createEntityManager();             em.getTransaction().begin ... ();             em.getTransaction().begin();             try {                 Query q = em.createQuery
Forum
1

Unable to persist TreeMap

.getTransaction().begin();         em.persist(p);         em.getTransaction().commit ... .getKey() +       " value: " + entry.getValue()); } //for em.getTransaction().begin(); em
Forum
1

Unexpected behaviour upon update. Bug?

(); em.getTransaction().begin(); Update simple = new Update(); simple.i = 0 ... (); simple.v = 4; em.getTransaction().begin(); simple = em.createQuery("SELECT s FROM
Forum
1

Unique contraint with 2 members

");         EntityManager em = emf.createEntityManager();                 em.getTransaction().begin();         em.persist(new MyEntity());         em.getTransaction().commit();         em.getTransaction().begin
Forum
1

Using the wrong class to access a database

(); } static void create(EntityManager em) { em.getTransaction().begin(); for (int i = 0; i < 1000 ... = query.getResultList(); em.getTransaction().begin(); for (Point p : results) { if (p