@Transactional(readOnly = false, propagation = Propagation.REQUIRED) public void deleteMotivoReclamacion(MotivoReclamacion entity) throws Exception { if (entity == null) { throw new ZMessManager().new NullEntityExcepcion("MotivoReclamacion"); } if (entity.getIdMotRecl() == null) { throw new ZMessManager().new EmptyFieldException("idMotRecl"); } List<MotReclSelect> motReclSelects = null; List<MotReclXTpSol> motReclXTpSols = null; try { motReclSelects = motReclSelectDAO.findByProperty("motivoReclamacion.idMotRecl", entity.getIdMotRecl()); if (Utilities.validationsList(motReclSelects) == true) { throw new ZMessManager().new DeletingException("motReclSelects"); } motReclXTpSols = motReclXTpSolDAO.findByProperty("motivoReclamacion.idMotRecl", entity.getIdMotRecl()); if (Utilities.validationsList(motReclXTpSols) == true) { throw new ZMessManager().new DeletingException("motReclXTpSols"); } motivoReclamacionDAO.delete(entity); } catch (Exception e) { throw new Exception("Error Eliminando Motivo de Reclamación"); } finally { } }