if (pv.getValue() == null) { String tmpStr = pv.getValue(); ndx = tmpStr.indexOf(' '); if (ndx > 0) { tmpStr = pv.getValue(); annot.setAnnotationType(pv.getProperty()); if (pv.getProperty() != null && pv.getProperty().length() > 2000) { logger.warn("annotation type longer than allowed database column length - truncating " + trm.getIdentifier()); annot.setAnnotationType(annot.getAnnotationType().substring(0, 2000)); annot.setAnnotationStringValue(pv.getValue()); if (pv.getValue() != null && pv.getValue().length() > 2000) { logger.warn("annotation value longer than allowed database column length - truncating " + trm.getIdentifier()); annot.setAnnotationStringValue(annot.getAnnotationStringValue().substring(0, 2000)); logger.debug("pv.getProperty() = " + pv.getProperty()); logger.debug("pv.getValue() = " + pv.getValue()); continue;
if (pv.getValue() == null) { String tmpStr = pv.getValue(); ndx = tmpStr.indexOf(' '); if (ndx > 0) { tmpStr = pv.getValue(); annot.setAnnotationType(pv.getProperty()); if (pv.getProperty() != null && pv.getProperty().length() > 2000) { logger.warn("annotation type longer than allowed database column length - truncating " + trm.getIdentifier()); annot.setAnnotationType(annot.getAnnotationType().substring(0, 2000)); annot.setAnnotationStringValue(pv.getValue()); if (pv.getValue() != null && pv.getValue().length() > 2000) { logger.warn("annotation value longer than allowed database column length - truncating " + trm.getIdentifier()); annot.setAnnotationStringValue(annot.getAnnotationStringValue().substring(0, 2000)); logger.debug("pv.getProperty() = " + pv.getProperty()); logger.debug("pv.getValue() = " + pv.getValue()); continue;
if (pv.getValue() == null) { String tmpStr = pv.getValue(); ndx = tmpStr.indexOf(' '); if (ndx > 0) { tmpStr = pv.getValue(); annot.setAnnotationType(pv.getProperty()); if (pv.getProperty() != null && pv.getProperty().length() > 2000) { logger.warn("annotation type longer than allowed database column length - truncating " + trm.getIdentifier()); annot.setAnnotationType(annot.getAnnotationType().substring(0, 2000)); annot.setAnnotationStringValue(pv.getValue()); if (pv.getValue() != null && pv.getValue().length() > 2000) { logger.warn("annotation value longer than allowed database column length - truncating " + trm.getIdentifier()); annot.setAnnotationStringValue(annot.getAnnotationStringValue().substring(0, 2000)); logger.debug("pv.getProperty() = " + pv.getProperty()); logger.debug("pv.getValue() = " + pv.getValue()); continue;