include nav link for expanded entity/collection
This commit is contained in:
parent
89a6a69de7
commit
9b3708ba1e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue