return false;
}
private static boolean checkConstraintUniqueHoursGroupCode(OrderLineDTO orderLine) {
try {
IHoursGroupDAO hoursGroupDAO = Registry.getHoursGroupDAO();
Set<HoursGroupDTO> hoursGroups = orderLine.hoursGroups;
for (HoursGroupDTO each: hoursGroups) {
HoursGroup hoursGroup = hoursGroupDAO.findByCodeAnotherTransaction(each.code);
if (hoursGroup != null) {
return true;
}
}
} catch (InstanceNotFoundException e) {