You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by mi...@apache.org on 2013/11/12 06:34:50 UTC
[20/40] git commit: OLINGO - 43 - Revert changes to Reference Service
Factory so it considers default naming.
OLINGO - 43 - Revert changes to Reference Service Factory so it
considers default naming.
Signed-off-by: Chandan V A <ch...@sap.com>
Project: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/commit/5a2a8bbc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/tree/5a2a8bbc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/diff/5a2a8bbc
Branch: refs/heads/PocEdmAnnotationsExtension
Commit: 5a2a8bbc85935c0e5f0afdcb6ad101cf2285a36e
Parents: 7bdb8e7
Author: Chandan V A <ch...@sap.com>
Authored: Sun Oct 27 12:58:18 2013 +0530
Committer: Chandan V A <ch...@sap.com>
Committed: Sun Oct 27 12:58:18 2013 +0530
----------------------------------------------------------------------
.../odata2/jpa/processor/ref/web/JPAReferenceServiceFactory.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/blob/5a2a8bbc/odata2-processor-jpa/jpa-web/src/main/java/org/apache/olingo/odata2/jpa/processor/ref/web/JPAReferenceServiceFactory.java
----------------------------------------------------------------------
diff --git a/odata2-processor-jpa/jpa-web/src/main/java/org/apache/olingo/odata2/jpa/processor/ref/web/JPAReferenceServiceFactory.java b/odata2-processor-jpa/jpa-web/src/main/java/org/apache/olingo/odata2/jpa/processor/ref/web/JPAReferenceServiceFactory.java
index c2339d5..2452db0 100644
--- a/odata2-processor-jpa/jpa-web/src/main/java/org/apache/olingo/odata2/jpa/processor/ref/web/JPAReferenceServiceFactory.java
+++ b/odata2-processor-jpa/jpa-web/src/main/java/org/apache/olingo/odata2/jpa/processor/ref/web/JPAReferenceServiceFactory.java
@@ -27,6 +27,7 @@ import org.apache.olingo.odata2.processor.api.jpa.model.JPAEdmExtension;
public class JPAReferenceServiceFactory extends ODataJPAServiceFactory {
private static final String PUNIT_NAME = "salesorderprocessing";
+ private static final String MAPPING_MODEL = "SalesOrderProcessingMappingModel.xml";
@Override
public ODataJPAContext initializeODataJPAContext()
@@ -34,8 +35,7 @@ public class JPAReferenceServiceFactory extends ODataJPAServiceFactory {
ODataJPAContext oDataJPAContext = getODataJPAContext();
oDataJPAContext.setEntityManagerFactory(JPAEntityManagerFactory.getEntityManagerFactory(PUNIT_NAME));
oDataJPAContext.setPersistenceUnitName(PUNIT_NAME);
- //oDataJPAContext.setJPAEdmMappingModel(MAPPING_MODEL);
- oDataJPAContext.setDefaultNaming(false);
+ oDataJPAContext.setJPAEdmMappingModel(MAPPING_MODEL);
oDataJPAContext
.setJPAEdmExtension((JPAEdmExtension) new SalesOrderProcessingExtension());