I'm reading this documentation in order to figure out how to create an odata service.
I don't quite figure out what are EntityContainer
and EntitySet
for...
[EDIT]
I'd like to ask for a misunderstanding I don't quite figure out yet. If a EntitySet
straightforwardly is a set of entities:
Why do I need to implement a EntitySet CsdlAbstractEdmProvider.getEntitySet()
method on my OData provider? As you can see on here I need to implement this method that returns an EntitySet
. This is the implementation on Olingo documentation:
public CsdlEntitySet getEntitySet(FullQualifiedName entityContainer, String entitySetName) {
if(entityContainer.equals(CONTAINER)){
if(entitySetName.equals(ES_PRODUCTS_NAME)){
CsdlEntitySet entitySet = new CsdlEntitySet();
entitySet.setName(ES_PRODUCTS_NAME);
entitySet.setType(ET_PRODUCT_FQN);
return entitySet;
}
}
return null;
}
I don't quite figure out what's this implementation for.
By other hand, on EntityCollectionProcessor
documentation implementation you can see they are using EntitySet
as well.
I don't understand which are the differences between both EntitySet
inside a Provider and inside Processor.
I don't know if I've explained so well