Hi All,
I want to do a rollback if an exception occur. I have used the below for connecting and setting the autocommit as false.
But as you know that "session.connection" is depricated. How can I set the autocommit as false.
query:
1.Iam afraid if I set autocommit as false explicitly from the properties files the rest of the existing code (say some other 20+ DAOIMPL files ) I should do commit() if we set from properties as autocommit as false ?? Please clarify me is this is correct?
2.How to do autocommit as false without explicitly setting from properties file.
Any way still using the hibernateTemplate ?
Please suggest me.
I want to do a rollback if an exception occur. I have used the below for connecting and setting the autocommit as false.
But as you know that "session.connection" is depricated. How can I set the autocommit as false.
query:
1.Iam afraid if I set autocommit as false explicitly from the properties files the rest of the existing code (say some other 20+ DAOIMPL files ) I should do commit() if we set from properties as autocommit as false ?? Please clarify me is this is correct?
2.How to do autocommit as false without explicitly setting from properties file.
Any way still using the hibernateTemplate ?
Please suggest me.