This commit is contained in:
Ramesh Reddy 2018-09-24 12:38:20 -05:00
commit 003f0f4ffa
2 changed files with 9 additions and 0 deletions

View File

@ -715,6 +715,10 @@ public class MetadataDocumentJsonSerializer {
json.writeNumberField(SCALE, property.getScale());
}
if (property.getSrid() != null) {
json.writeStringField(SRID, "" + property.getSrid());
}
appendAnnotations(json, property, null);
json.writeEndObject();
}

View File

@ -96,6 +96,7 @@ public class MetadataDocumentXmlSerializer {
private static final String XML_PROPERTY_REF = "PropertyRef";
private static final String XML_KEY = "Key";
private static final String XML_SCALE = "Scale";
private static final String XML_SRID = "SRID";
private static final String XML_PRECISION = "Precision";
private static final String XML_MAX_LENGTH = "MaxLength";
private static final String XML_DEFAULT_VALUE = "DefaultValue";
@ -906,6 +907,10 @@ public class MetadataDocumentXmlSerializer {
writer.writeAttribute(XML_SCALE, "" + property.getScale());
}
if (property.getSrid() != null) {
writer.writeAttribute(XML_SRID, "" + property.getSrid());
}
appendAnnotations(writer, property);
writer.writeEndElement();
}