Thiago Assis created OLINGO-978:
-----------------------------------
Summary: JPAEdmSchema always overwrites the FunctionImports
Key: OLINGO-978
URL: https://issues.apache.org/jira/browse/OLINGO-978
Project: Olingo
Issue Type: Bug
Components: odata2-jpa
Affects Versions: V2 2.0.6
Reporter: Thiago Assis
I want to create my FunctionImports by my self without use annotations. I am
trying to create than throug the extendJPAEdmSchema method but is not working
because the behavior described bellow:
In JPAEdmSchema at line 185
if (functionImportView.getConsistentFunctionImportList() != null) {
entityContainerView.getEdmEntityContainer().setFunctionImports(
functionImportView.getConsistentFunctionImportList());
}
The if statement is never false because consistentFunctionImportList is always
initialized whith an empity array, in my point of view the right code wold be:
if (functionImportView.getConsistentFunctionImportList() != null
&& !functionImportView.getConsistentFunctionImportList().isEmpty()) {
entityContainerView.getEdmEntityContainer().setFunctionImports(
functionImportView.getConsistentFunctionImportList());
}
Can you help to change this point ?
Thanks
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)