[OLINGO-781] TecSvc: The atom id for functions without entity set is

calculated by the URI of the function
This commit is contained in:
Christia Holzer 2015-09-29 15:44:10 +02:00
parent 64388ecf2b
commit b7dcae862a
1 changed files with 8 additions and 1 deletions

View File

@ -506,8 +506,15 @@ public class TechnicalEntityProcessor extends TechnicalProcessor
expand);
expandHandler.applyExpandQueryOptions(entitySetSerialization, edmEntitySet, expand);
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
final SerializerResult serializerResult = (isReference) ?
serializeReferenceCollection(entitySetSerialization, edmEntitySet, requestedContentType, countOption) :