[OLINGO-781] TecSvc: The atom id for functions without entity set is
calculated by the URI of the function
This commit is contained in:
parent
64388ecf2b
commit
b7dcae862a
|
@ -506,8 +506,15 @@ public class TechnicalEntityProcessor extends TechnicalProcessor
|
||||||
expand);
|
expand);
|
||||||
expandHandler.applyExpandQueryOptions(entitySetSerialization, edmEntitySet, expand);
|
expandHandler.applyExpandQueryOptions(entitySetSerialization, edmEntitySet, expand);
|
||||||
final CountOption countOption = uriInfo.getCountOption();
|
final CountOption countOption = uriInfo.getCountOption();
|
||||||
|
|
||||||
|
String id;
|
||||||
|
if(edmEntitySet == null) {
|
||||||
|
// Used for functions, function imports etc.
|
||||||
|
id = request.getRawODataPath();
|
||||||
|
} else {
|
||||||
|
id = request.getRawBaseUri() + edmEntitySet.getName();
|
||||||
|
}
|
||||||
|
|
||||||
final String id = request.getRawBaseUri() + edmEntitySet.getName();
|
|
||||||
// Serialize
|
// Serialize
|
||||||
final SerializerResult serializerResult = (isReference) ?
|
final SerializerResult serializerResult = (isReference) ?
|
||||||
serializeReferenceCollection(entitySetSerialization, edmEntitySet, requestedContentType, countOption) :
|
serializeReferenceCollection(entitySetSerialization, edmEntitySet, requestedContentType, countOption) :
|
||||||
|
|
Loading…
Reference in New Issue