olingo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From archana...@apache.org
Subject olingo-odata2 git commit: [Olingo-1147]Entity read not working due to normalization
Date Mon, 20 Nov 2017 10:53:49 GMT
Repository: olingo-odata2
Updated Branches:
  refs/heads/master 6790766c1 -> 2d876376a


[Olingo-1147]Entity read not working due to normalization


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

Branch: refs/heads/master
Commit: 2d876376aa86977e1c9a4c9e3da8226e92f839c0
Parents: 6790766
Author: Archana Rai <archana.rai@sap.com>
Authored: Mon Nov 20 16:23:31 2017 +0530
Committer: Archana Rai <archana.rai@sap.com>
Committed: Mon Nov 20 16:23:31 2017 +0530

----------------------------------------------------------------------
 .../odata2/jpa/processor/core/access/data/JPAProcessorImpl.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/2d876376/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAProcessorImpl.java
----------------------------------------------------------------------
diff --git a/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAProcessorImpl.java
b/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAProcessorImpl.java
index 577e80a..646d8d6 100644
--- a/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAProcessorImpl.java
+++ b/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAProcessorImpl.java
@@ -300,6 +300,8 @@ public class JPAProcessorImpl implements JPAProcessor {
         }
       } catch(PersistenceException e){
         em.getTransaction().rollback();
+        throw ODataJPARuntimeException.throwException(
+            ODataJPARuntimeException.ERROR_JPQL_DELETE_REQUEST, e);
       }
     }
     return selectedObject;


Mime
View raw message