Home » Search

About begin

61-70 of 200 Refresh
Forum
2

Items in list are doubled, when the entity class is not enhanced

.createQuery("select c from Customer c").getResultList(); em.getTransaction(). begin ... = em.createQuery("select i from Item i").getResultList(); em.getTransaction(). begin ... (); em.getTransaction(). begin(); Customer c = new Customer(); em
Issue
2

Unexpected exception (Error 990) com.objectdb.o.InternalException

();                 // Persist an entity with an embeddable:         em.getTransaction(). begin ... :                  em.getTransaction(). begin();         embeddable.update();         em.getTransaction().commit ... :         em.getTransaction(). begin();         em.persist(new MyEntity());         em.getTransaction
Forum
2

Persist error @ManyToMany how to define correct entities relationships

(){ if(!em.getTransaction().isActive()) em.getTransaction(). begin ... ().isActive()) em.getTransaction(). begin(); } } } I finally managed ... (). begin(); } } } If you use merge, you many want to change the cascade setting
Forum
2

Internal exception when updating date filed (TemporalType.DATE)

:" + newBirthday.toString());             try {                 entityManager.getTransaction(). begin ... {                 entityManager.getTransaction(). begin();                 for (int index = 0; index < count; index ... (); if (personsCount == 0) { entityManager.getTransaction(). begin(); for (int index
Forum
2

Date field Index is corrupted due to time change

(). begin();                 // Add records         DateTime dt = null;         try {             dt ... ");         em.getTransaction(). begin();         Long r = (Long) q.getSingleResult();         em ... {             q = em.createQuery("DELETE FROM DateTime");             em.getTransaction(). begin();             q
Issue
1

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

= getEntityManager(); em.getTransaction(). begin(); em.persist(moment ... ; try { em = getEntityManager(); em.getTransaction(). begin(); em ... ; try { em = getEntityManager(); em.getTransaction(). begin
Forum
1

Database(*.odb) file size on disk

);    System.out.println("create");    for (int i = 0; i < objects; i++) {     em.getTransaction(). begin ... ");    // add references    for (int i = 0; i < objects; i++) {     em.getTransaction(). begin ... ++) {     em.getTransaction(). begin();     EntityA entity = em.find(EntityA.class, entityAIds.get(i
Forum
1

Performance and memory usage of queries

.AUTO);    em.getTransaction(). begin();    MyEntity myEntity = new MyEntity();    myEntity = em ... .setFlushMode(FlushModeType.AUTO);   em.getTransaction(). begin();   Query q = em.createQuery("DELETE ... ) This DELETE query is very simple, but indeed requires a lot of memory:     em.getTransaction(). begin
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

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