About begin

71-80 of 200Refresh
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

Empty temporary dat files in the temp folder

, begin a transaction, do some stuff (find, persist, remove …) and then commit or in the case of errors ... ();   em.setFlushMode(FlushModeType.AUTO);   em.getTransaction().begin();   MyEntity myEntity = new ... .createEntityManager();   em.setFlushMode(FlushModeType.AUTO);   em.getTransaction().begin
Forum
1

Error using query with MAX() function

(); } public void doit() { for(int i=1;i<32766;i++) { em.getTransaction().begin ... .getTransaction().begin(); CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery q = cb ... .getTransaction().commit(); em.getTransaction().begin(); } After much trying to reliably
Forum
1

Extra uninitialised entities spawned on merge()

.createEntityManager();         em.getTransaction().begin();         Element root = new Element(null ... );                 if (DO_PERSIST_BEFORE_MERGE) {             em.getTransaction().begin();             em.persist(e);             em.getTransaction().commit();         }         em.getTransaction().begin
Forum
1

Left join fetch behaviour doesn't retrieve children?

();         if (! em.getTransaction().isActive()) {             em.getTransaction().begin ... .getTransaction().isActive()) {    em.getTransaction().begin();   }   MyEntity e1 = new MyEntity ... ();   if (!em.getTransaction().isActive()) {    em.getTransaction().begin();   }   // Write 100 000
Forum
1

New to Product & Having An Issue

, "dOne", null); try{ em.getTransaction().begin(); em.persist(department ... (this.foundResult); try{ em.getTransaction().begin(); em.remove ... .getResultList(); em.getTransaction().begin(); for(Department d
Forum
1

Optimistic Locking

.getPersistenceManager(); pm.currentTransaction().begin(); pm.makePersistent(new Counter ... .getExtent(Counter.class).iterator().next(); pm1.currentTransaction().begin(); c1.increase ... .currentTransaction().begin(); c2.increase(); // First user commits - succeeds:   pm1
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

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