About begin

81-90 of 200Refresh
Forum
1

Remove not working

); EntityManager em = emf.createEntityManager(); em.getTransaction().begin(); B b = new B ... .getTransaction().begin(); b = em.find(B.class, 1); em.remove(b); A a = em.find ... in a for-each statement.   transaction.begin get Extent, traverse its entries, delete an object
Forum
1

Should derived fields of an EmbeddedId be manually maintained by app code?

(); em.getTransaction().begin(); EContainer container = EContainer.getInstance(em); long begin = System.currentTimeMillis(); container.generateMapItems(numItems, false, em); long ... ) + " milliseconds"); System.out.println("Created " + numItems + " in " + (end - begin) + " milliseconds
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

"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