Home » Search

About begin

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

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

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

"Attempt to lock a non entity object" error

();         Person p = new Person("Ron");         em.getTransaction().begin();         em.persist(p ... ().setRetainValues(true);         em.getTransaction().begin();         p = em.find(Person.class, 1 ... and first lock: " + p.name);         em.getTransaction().rollback();         em.getTransaction().begin
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

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

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

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