Update Operations Begin transactions before update DB

revert-70aa11f8
manoj 10 years ago
parent fc5be1d059
commit 0f55d86b08

@ -153,9 +153,10 @@ public class OperationManagerImpl implements OperationManager {
public void updateOperation(int operationId, Operation.Status operationStatus)
throws OperationManagementException {
try {
OperationManagementDAOFactory.beginTransaction();
Operation operation = operationDAO.getOperation(operationId);
operation.setStatus(operationStatus);
OperationManagementDAOFactory.beginTransaction();
operationDAO.updateOperation(operation);
OperationManagementDAOFactory.commitTransaction();
}catch(OperationManagementDAOException ex){

Loading…
Cancel
Save