About begin

91-100 of 200Refresh
Issue
1

Unexpected exception (Error 990) - Merge with no Transaction

);          EntityManager em = emf.createEntityManager();      em.getTransaction().begin ... ();      em.close();      em = emf.createEntityManager();      em.getTransaction().begin ... always fails for this use case. I can make the code work by beginning a transaction in the last step
Forum
1

Visibility of changes in Transaction is not visible to a JPA QL Query

     .lookup("java:comp/UserTransaction");    tx.begin();    SLSBObjDbRemote bean ... .UserTransaction) context      .lookup("java:comp/UserTransaction");    tx.begin();    SLSBObjDbRemote ... state of the app ( i.e. what was there at the beginning of the transaction as then operated on by
Issue
1

ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection

it will report: Java/JVM version: 1.8 Java/JVM detail version: 1.8.0_74 ObjectDB enhancer: begin ... .createEntityManager(); format().out("Persist project.."); em.getTransaction().begin(); em ... detail version: 1.8.0_74 ObjectDB enhancer: begin: (all classes within entity packages): javac.classpath:lib
Forum
1

zip file or JAR manifest missing

exactly because persistence unit is not essential. trans.begin();    ItemList i = new ItemList();    i.setItemname("Beginning");    em.persist(i);    trans.commit(); Of course it works ... .getEntityManager(); public void read(){   int iCnt = 10;   while (--iCnt>=0){    trans.begin();    Page
Issue
1

Sometimes cascade persist does not work during commit

.setFlushMode(FlushModeType.AUTO); em.getTransaction().begin(); em.createQuery ... (FlushModeType.AUTO); em.getTransaction().begin(); Query query = em.createQuery ... intermediate flush operations with complete begin-commit transactions, then this indeed should work. btc_es
Issue
1

Best practise loading big data

"); EntityManager em = emf.createEntityManager(); // create values em.getTransaction().begin ... .getTransaction().commit(); sbc = null; long counter = 0; em.getTransaction().begin(); sbc = em.find ... (EntityManager em) {         int valueCount = 0;          em.getTransaction().begin
Forum
1

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

"where in" query

.createEntityManager();                 em.getTransaction().begin();         em.persist(new ... .createEntityManager();                 em.getTransaction().begin();         for (int i = 0; i < 5
Forum
1

@Unique member combination not working

{             em.getTransaction().begin();             em.persist(person);             em.getTransaction ... .createEntityManager();             try {                 em.getTransaction().begin();                 em
Issue
1

[ObjectDB 2.4.1] Unexpected exception (Error 990) on getObjectById

();                 try {             Object oid = null;             pm.currentTransaction().begin ... .currentTransaction().commit();                 pm.currentTransaction().begin();             pm.newQuery