include nav link for expanded entity/collection

This commit is contained in:
Jon McEwen 2017-04-06 16:40:30 +01:00
parent 89a6a69de7
commit 9b3708ba1e
1 changed files with 4 additions and 0 deletions

View File

@ -564,6 +564,10 @@ public class ODataJsonSerializer extends AbstractODataSerializer {
final boolean writeOnlyCount, final boolean writeOnlyRef, final Set<String> ancestors,
final JsonGenerator json) throws IOException, SerializerException {
if (isODataMetadataFull) {
json.writeStringField(property.getName() + Constants.JSON_NAVIGATION_LINK, navigationLink.getHref());
}
if (property.isCollection()) {
if (writeOnlyCount) {
if (navigationLink == null || navigationLink.getInlineEntitySet() == null) {