@Transactional(readOnly = false, propagation = Propagation.REQUIRED) public void updateMotivoReclamacion(MotivoReclamacion entity) throws Exception { try { if (entity == null) { throw new ZMessManager().new NullEntityExcepcion("MotivoReclamacion"); } if (entity.getDescripcionMotRecl() == null) { throw new ZMessManager().new EmptyFieldException("descripcionMotRecl"); } if ((entity.getDescripcionMotRecl() != null) && (Utilities.checkWordAndCheckWithlength(entity.getDescripcionMotRecl(), 50) == false)) { throw new ZMessManager().new NotValidFormatException("descripcionMotRecl"); } if (entity.getEstadoRegistro() == null) { throw new ZMessManager().new EmptyFieldException("estadoRegistro"); } if ((entity.getEstadoRegistro() != null) && (Utilities.checkWordAndCheckWithlength(entity.getEstadoRegistro(), 1) == false)) { throw new ZMessManager().new NotValidFormatException("estadoRegistro"); } if (entity.getIdMotRecl() == null) { throw new ZMessManager().new EmptyFieldException("idMotRecl"); } if ((entity.getIdMotRecl() != null) && (Utilities.checkNumberAndCheckWithPrecisionAndScale("" + entity.getIdMotRecl(), 10, 0) == false)) { throw new ZMessManager().new NotValidFormatException("idMotRecl"); } if ((entity.getUsuarioCreador() != null) && (Utilities.checkWordAndCheckWithlength(entity.getUsuarioCreador(), 50) == false)) { throw new ZMessManager().new NotValidFormatException("usuarioCreador"); } if ((entity.getUsuarioUltimaModificacion() != null) && (Utilities.checkWordAndCheckWithlength(entity.getUsuarioUltimaModificacion(), 50) == false)) { throw new ZMessManager().new NotValidFormatException("usuarioUltimaModificacion"); } motivoReclamacionDAO.update(entity); } catch (Exception e) { throw new Exception("Error Modificando Motivo de Reclamación"); } finally { } }