java - Writing to the datastore without closing Persistence Manager -
how commit database when updating object using persistencemanager without closing it?
you need commit transaction. don't need close persistencemanager.
persistencemanager p; ... p.currenttransaction().begin(); .... //do work p.currenttransaction().commit();
Comments
Post a Comment