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.
Joined: Jun 28, 2010
Got a way out by using spring Transaction management
subject: session.connection() is depricated . How to setAutoCommit(false) ?