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

Popular posts from this blog

angularjs - Showing an empty as first option in select tag -

qt - Change color of QGraphicsView rubber band -

php - Cloud9 cloud IDE and CakePHP -