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

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

View File

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