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 -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -