About rollback

71-80 of 90Refresh
Forum
1

How to delete M2M relationship?

if (transaction != null && transaction.isActive()) { transaction.rollback
Forum
1

Is it possible to commit only specific elements?

.      If you split the activity to several transactions you can commit some of them and rollback
Forum
1

Not able to update records

.getTransaction().commit(); // end the transaction On an error you had propably to rollback your transaction
Issue
1

NullPointer running multiple client against server

.getTransaction().isActive()) em.getTransaction().rollback(); throw new ApplicationException
Forum
1

NullPointerException while setting a new property value

.getTransaction().isActive()) em.getTransaction().rollback(); em.close
Forum
1

One transaction or two?

().rollback(); } if(!pm.isClosed()) { pm.close(); } } Should I separate the deletes
Forum
1

Optimistic locking: prevent version increment on entity collection attribute

and we are still in the same transaction (before any commit or rollback). In the debugger, when I check
Forum
1

Removing an entity throws exception

);      em.getTransaction().commit();     }     catch (Exception e) {      em.getTransaction().rollback
Forum
1

Rename Application StringIdentity

.isActive()) transaction.rollback(); } Would the above code keep my persisted object in the ObjectDB
Forum
1

Suspected memleak caused by bad state of EntityManager

.rollback(EMImpl.java:295) ~[EMImpl.class:na] at com.app.dao.impl.ObjectdbExpeditionDAO