java - I tried to clear entity manager after commit in JPA, so i am getting exceptions -


i using following codes.

e.gettransaction().commit(); e.clear(); 

but getting following exceptions:

org.eclipse.persistence.exceptions.databaseexception internal exception: java.sql.sqlexception: not commit auto-commit set on

could please on error?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -