Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
V2 1.2.0
-
None
-
None
Description
The documentation describing where to place a metadata redefinition file could be clearer (see http://olingo.apache.org/doc/tutorials/jparedefinemetadata.html).
I suggest changing the wording from:
"Store the JPA EDM Mapping model XML in webapp folder of Java web application. Make sure the file is placed under the applications root folder (relative to class path ../../WEB-INF/classes) when the application is deployed on web server."
to
"Deploy the JPA EDM Mapping model XML file in the root directory of your web application archive (in other words, store it in the same directory as 'WEB-INF')."
Also, the example call to setJPAEdmNameMappingModel, could be clarified by changing it from:
oDataJPAContext.setJPAEdmNameMappingModel(<name of xml file>);
to
oDataJPAContext.setJPAEdmNameMappingModel(<mapping xml filename with XML extension>);