You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ch...@apache.org on 2015/01/31 14:22:01 UTC
olingo-odata2 git commit: [OLINGO-544] Fix of delete on Links
Repository: olingo-odata2
Updated Branches:
refs/heads/master baf4e78bb -> 52a6342fa
[OLINGO-544] Fix of delete on Links
Signed-off-by: Chandan V A <ch...@sap.com>
Project: http://git-wip-us.apache.org/repos/asf/olingo-odata2/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata2/commit/52a6342f
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata2/tree/52a6342f
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata2/diff/52a6342f
Branch: refs/heads/master
Commit: 52a6342fa91738d7ec6003b2bb1c7b3ff84edf21
Parents: baf4e78
Author: Chandan V A <ch...@sap.com>
Authored: Sat Jan 31 18:51:40 2015 +0530
Committer: Chandan V A <ch...@sap.com>
Committed: Sat Jan 31 18:51:40 2015 +0530
----------------------------------------------------------------------
.../olingo/odata2/jpa/processor/core/access/data/JPALink.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/52a6342f/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPALink.java
----------------------------------------------------------------------
diff --git a/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPALink.java b/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPALink.java
index a4350c3..72dbc15 100644
--- a/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPALink.java
+++ b/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPALink.java
@@ -54,7 +54,7 @@ public class JPALink {
private static final String SPACE = " ";
private static final String ODATA_COMMAND_FILTER = "$filter";
- private static final String ODATA_OPERATOR_AND = "and";
+ private static final String ODATA_OPERATOR_OR = "or";
private static final String ODATA_OPERATOR_NE = "ne";
private ODataJPAContext context;
@@ -120,7 +120,7 @@ public class JPALink {
condition.append(ODATA_OPERATOR_NE).append(SPACE);
condition.append(literal).append(SPACE);
if (i != size - 1) {
- condition.append(ODATA_OPERATOR_AND).append(SPACE);
+ condition.append(ODATA_OPERATOR_OR).append(SPACE);
}
}
options.put(ODATA_COMMAND_FILTER, condition.toString());