Robert Libby created OLINGO-1281:
------------------------------------
Summary: Deltas and Deleted Entities with properties
Key: OLINGO-1281
URL: https://issues.apache.org/jira/browse/OLINGO-1281
Project: Olingo
Issue Type: Question
Components: odata4-server
Affects Versions: (Java) V4 4.4.0
Reporter: Robert Libby
Currently, any properties/annotations included in a DeletedEntity show up as
string values. Is this the plan going forward or can we expect to be able have
a response with types other than strings?
Also, when properties/annotations are null, it throws a NPE.
>From JsonDeltaSerializerWithNavigations.java:
{code:java}
List<Annotation> annotations = deletedEntity.getAnnotations();
if (annotations != null && annotations.size() > 0) {
for (Annotation annotation : annotations) {
json.writeStringField(Constants.AT + annotation.getTerm(),
annotation.getValue().toString());
}
}
json.writeEndObject();
List<Property> properties = deletedEntity.getProperties();
if (properties != null && properties.size() > 0) {
for (Property property : properties) {
json.writeStringField(property.getName(), property.getValue().toString());
}
}
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)