Merge branch 'OLINGO-1293' of https://github.com/shawkins/olingo-odata4
This commit is contained in:
commit
003f0f4ffa
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue