This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am developing web java application with help of Hibernate ,
To interact with DB , some cases I need only a single operation and in some cases I need a transaction (multiple operations)
currently I have the following DAO which works only for a single operation but it fails in case of transaction because am commiting the transaction in DAO
is there any way to modify the DAO code so that it can work in both cases (transation and non transaction cases) and what is the best way to do that so it suits all the cases.