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 2014/10/14 20:35:07 UTC
[20/39] git commit: [OLINGO-448] Improve JPA error handling
[OLINGO-448] Improve JPA error handling
Based on a patch submitted by Giacomo Pati which is attached to the olingo
issue 448.
Project: http://git-wip-us.apache.org/repos/asf/olingo-odata2/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata2/commit/29516581
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata2/tree/29516581
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata2/diff/29516581
Branch: refs/heads/Olingo-129_PocJpaDataStore
Commit: 295165810bff364cebbee875968d66fbbdb0b5c4
Parents: 2fd3f0f
Author: Christian Amend <ch...@apache.org>
Authored: Mon Oct 6 16:01:00 2014 +0200
Committer: Christian Amend <ch...@apache.org>
Committed: Mon Oct 6 16:01:00 2014 +0200
----------------------------------------------------------------------
.../odata2/jpa/processor/core/access/data/JPAEntityParser.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/29516581/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAEntityParser.java
----------------------------------------------------------------------
diff --git a/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAEntityParser.java b/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAEntityParser.java
index 318d05e..693d91f 100644
--- a/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAEntityParser.java
+++ b/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/access/data/JPAEntityParser.java
@@ -543,6 +543,8 @@ public final class JPAEntityParser {
String nameWithIs = getAccessModifierName(property.getName(),
property.getMapping(), ACCESS_MODIFIER_IS);
method = jpaEntityType.getMethod(nameWithIs, (Class<?>[]) null);
+ } else {
+ throw ODataJPARuntimeException.throwException(ODataJPARuntimeException.INNER_EXCEPTION, e1);
}
} catch (EdmException exp) {
throw ODataJPARuntimeException.throwException(ODataJPARuntimeException.INNER_EXCEPTION, exp);