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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -