sinaptico / reviewer

1 stars 0 forks source link

Transactions Refactor #8

Open mdagraca opened 12 years ago

mdagraca commented 12 years ago

All the methods in xxxDao classes start a transaction, execute a query on the database and finish with commit, if an exception occurs, rollback never is executed. Refactorize using business transaction. For example, use just an only transaction for saveCourse method.