olingo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject [21/33] olingo-odata2 git commit: [OLINGO-475] Fixed type cast
Date Wed, 10 Dec 2014 19:31:10 GMT
[OLINGO-475] Fixed type cast


Project: http://git-wip-us.apache.org/repos/asf/olingo-odata2/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata2/commit/0c4bac59
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata2/tree/0c4bac59
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata2/diff/0c4bac59

Branch: refs/heads/Olingo-129_PocJpaDataStore
Commit: 0c4bac59daa0ed0b97c78b82e8c27275caf2d769
Parents: ecd28f3
Author: Michael Bolz <michael.bolz@sap.com>
Authored: Wed Nov 12 10:26:14 2014 +0100
Committer: Michael Bolz <michael.bolz@sap.com>
Committed: Wed Nov 12 10:26:14 2014 +0100

----------------------------------------------------------------------
 .../olingo/odata2/jpa/processor/core/ODataExpressionParser.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/0c4bac59/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/ODataExpressionParser.java
----------------------------------------------------------------------
diff --git a/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/ODataExpressionParser.java
b/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/ODataExpressionParser.java
index 0e765be..5510fde 100644
--- a/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/ODataExpressionParser.java
+++ b/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/ODataExpressionParser.java
@@ -26,6 +26,7 @@ import java.util.List;
 
 import org.apache.olingo.odata2.api.edm.EdmException;
 import org.apache.olingo.odata2.api.edm.EdmLiteralKind;
+import org.apache.olingo.odata2.api.edm.EdmMappable;
 import org.apache.olingo.odata2.api.edm.EdmMapping;
 import org.apache.olingo.odata2.api.edm.EdmProperty;
 import org.apache.olingo.odata2.api.edm.EdmSimpleType;
@@ -167,7 +168,7 @@ public class ODataExpressionParser {
         tempExp = member.getPath();
       }
       memberExpStr =
-          ((EdmProperty) ((PropertyExpression) tempExp).getEdmProperty()).getMapping().getInternalName()
+          ((EdmMappable) ((PropertyExpression) tempExp).getEdmProperty()).getMapping().getInternalName()
               + JPQLStatement.DELIMITER.PERIOD + memberExpStr;
       return tableAlias + JPQLStatement.DELIMITER.PERIOD + memberExpStr;
 


Mime
View raw message