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

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

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

php - Cloud9 cloud IDE and CakePHP -