[Bug #1002] it catchs HibernateOptimisticLockingFailureException in validator method
of the orderElementTemplate Entity. It is caught in the validator. Otherwise it would be wraped by hibernate and would bypass the automatic handling of OptimisttcLockingFailureExceptions FEA: ItEr74S04BugFixing
This commit is contained in:
parent
bb04626999
commit
73fbd7b969
1 changed files with 3 additions and 0 deletions
|
|
@ -62,6 +62,7 @@ import org.navalplanner.business.requirements.entities.DirectCriterionRequiremen
|
|||
import org.navalplanner.business.requirements.entities.IndirectCriterionRequirement;
|
||||
import org.navalplanner.business.templates.daos.IOrderElementTemplateDAO;
|
||||
import org.navalplanner.business.trees.ITreeNode;
|
||||
import org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException;
|
||||
|
||||
/**
|
||||
* @author Óscar González Fernández <ogonzalez@igalia.com>
|
||||
|
|
@ -479,6 +480,8 @@ public abstract class OrderElementTemplate extends BaseEntity implements
|
|||
}
|
||||
catch (NonUniqueResultException e) {
|
||||
return false;
|
||||
} catch (HibernateOptimisticLockingFailureException e) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue