Internal Website Search
61-70 of 200 resultsRefreshOptimistic locking: prevent version increment on entity collection attribute; em.getTransaction().begin(); Document doc = new Document ... "); EntityManager em = emf.createEntityManager(); em.getTransaction().begin ... = emf.createEntityManager(); em.getTransaction().begin(); Document doc = new Document | |
Internal exception when updating date filed (TemporalType.DATE); entityManager.getTransaction().begin ... ; entityManager.getTransaction().begin();   ... .getTransaction().begin(); for (int index = 0; index < 10000; index | |
Date field Index is corrupted due to time change().begin();   ... ; em.getTransaction().begin(); Long r = (Long) q ... ; em.getTransaction().begin();   | |
Schema Update: class hierarchy change; em.getTransaction().begin(); MyEntity entity = new MyEntity(); entity.id = "123 ... ; em.getTransaction().commit(); em.getTransaction().begin(); MyEntity ... a new object! // // Persist an entity // em.getTransaction().begin(); //  | |
Updating Entities - All have been verified to be passed Main.paygradeDB.getTransaction().begin(); this.rate ... .getResultList().forEach(p -> System.out.println(p.getRate())); Main.paygradeDB.getTransaction().begin ... ="pre-java"> Main.employeeDB.getTransaction().begin(); for(Employee e : Query | |
Persist error @ManyToMany how to define correct entities relationships(){ if(!em.getTransaction().isActive()) em.getTransaction().begin(); } } }begin(); } } }begin(); } } } lo Hoel If you use merge, you many want to change | |
Remove a modified entity cause an optimistic lock exception; em.getTransaction().begin();   ... .getTransaction().begin(); MyEntity e = em.find(MyEntity.class, 1 ... ; em.getTransaction().begin(); em.persist(new | |
Items in list are doubled, when the entity class is not enhanced c from Customer c").getResultList(); em.getTransaction().begin(); for(Object o ... .createQuery("select i from Item i").getResultList(); em.getTransaction().begin ... (); em.getTransaction().begin(); Customer c = new Customer(); em.persist(c | |
@OneToMany(fetch = FetchType.LAZY) list is always null) { try { transaction.begin(); entityManager.persist(o ... { transaction.begin(); entityManager.persist(child); if (child.getParent ... ) { try { transaction.begin(); entityManager.persist(o | |
Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled; ParentEntity parentEntity = new ParentEntity(); entityManager.getTransaction().begin();   ... ; entityManager.getTransaction().begin(); ChildEntity childEntity = new ChildEntity();   ... ; em.getTransaction().begin(); MyEntity e = new |