committing stored procedure

2010-06-04 Thread Mr.Squirrel
Hi there, How to make a commit when calling a stored procedure which make an insert : This commit doesn't work : public void insererCiv1() { try { Adresse autreAdresse = new Adresse(); autreAdresse.setCodEtudiant("09F643X"); autreAdresse.s

Re: committing stored procedure

2010-06-04 Thread Clinton Begin
Because you're calling a "query", iBATIS doesn't realize you're actually updating, so it won't commit by default. Set your transactionManager config in your configuration XML file to commitRequired="true". Check the user guide for more. And make sure to switch to the MyBatis lists for future que

Re: committing stored procedure

2010-06-04 Thread Mr.Squirrel
ok thank you Clinton ! I have solved the probleme by adding a fake update before the call of my procedure. then, iBATIS understand that it's an update transaction. I will also try your solution as soon as possible -- View this message in context: http://old.nabble.com/committing-stored-procedu