[
https://issues.apache.org/jira/browse/OLINGO-863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15126555#comment-15126555
]
VIJAYASIMHA R NAGA commented on OLINGO-863:
-------------------------------------------
Hello Ramesh,
I've done below mentioned changes in method "readSchema", works fine with this
private void readSchema(XMLEventReader reader, StartElement element,
final SchemaBasedEdmProvider provider) throws XMLStreamException {
new ElementReader<SchemaBasedEdmProvider>() {
@Override
void build(XMLEventReader reader, StartElement element,
SchemaBasedEdmProvider provider, String name)
throws XMLStreamException {
CsdlSchema schema = new CsdlSchema();
schema.setComplexTypes(new ArrayList<CsdlComplexType>());
schema.setActions(new ArrayList<CsdlAction>());
schema.setEntityTypes(new ArrayList<CsdlEntityType>());
schema.setEnumTypes(new ArrayList<CsdlEnumType>());
schema.setFunctions(new ArrayList<CsdlFunction>());
schema.setTerms(new ArrayList<CsdlTerm>());
schema.setTypeDefinitions(new ArrayList<CsdlTypeDefinition>());
schema.setNamespace(attr(element, "Namespace"));
schema.setAlias(attr(element, "Alias"));
readSchemaContents(reader, schema);
provider.addSchema(schema);
}
}.read(reader, null, provider, "Schema");
//provider.addSchema(schema);
}
> MetaDataParser unable to handle more than one Schemas in a single Edmx file
> ---------------------------------------------------------------------------
>
> Key: OLINGO-863
> URL: https://issues.apache.org/jira/browse/OLINGO-863
> Project: Olingo
> Issue Type: Bug
> Components: odata4-server
> Affects Versions: (Java) V4 4.1.0
> Reporter: VIJAYASIMHA R NAGA
> Assignee: Ramesh Reddy
>
> If an Edmx file has more than one schema under DataServices, MetaDataParser
> returns a single schema with the last occurring namespace
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)