@Transactional(readOnly = false, propagation = Propagation.REQUIRED) public void saveMotivoReclamacion(MotivoReclamacion entity) throws Exception { try { /* if (getMotivoReclamacion(entity.getIdMotRecl()) != null) { throw new ZMessManager(ZMessManager.ENTITY_WITHSAMEKEY); } 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.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.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.save(entity); } catch (Exception e) { throw new Exception("Error Guardando Motivo de Reclamación"); } finally { } }