About rollback

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

java 8 LocalDateTime is not working in query

the @Convert annotation defined in the JPA standard, I get an rollback caused by this exception: com
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
Issue
1

ArrayIndexOutOfBoundsException on flush

().rollback(); throw new ApplicationException("Error flushing graph container", e); } finally