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 2015/01/27 20:25:31 UTC
[33/37] olingo-odata2 git commit: [OLINGO-537] - Fix Type cast issue
with generics
[OLINGO-537] - Fix Type cast issue with generics
Project: http://git-wip-us.apache.org/repos/asf/olingo-odata2/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata2/commit/1ade40de
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata2/tree/1ade40de
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata2/diff/1ade40de
Branch: refs/heads/Olingo-129_PocJpaDataStore
Commit: 1ade40dea19770091edcd12eae97013aa47cb9fa
Parents: 9d63ef4
Author: Chandan V A <ch...@sap.com>
Authored: Fri Jan 16 13:01:21 2015 +0530
Committer: Chandan V A <ch...@sap.com>
Committed: Fri Jan 16 13:01:21 2015 +0530
----------------------------------------------------------------------
.../jpa/processor/core/model/JPAEdmEntityType.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/1ade40de/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/model/JPAEdmEntityType.java
----------------------------------------------------------------------
diff --git a/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/model/JPAEdmEntityType.java b/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/model/JPAEdmEntityType.java
index 24878dc..fd18166 100644
--- a/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/model/JPAEdmEntityType.java
+++ b/odata2-jpa-processor/jpa-core/src/main/java/org/apache/olingo/odata2/jpa/processor/core/model/JPAEdmEntityType.java
@@ -113,13 +113,13 @@ public class JPAEdmEntityType extends JPAEdmBaseViewImpl implements JPAEdmEntity
JPAEdmMapping jpaEdmMapping = (JPAEdmMapping) currentEdmEntityType.getMapping();
EntityListeners entityListners = currentJPAEntityType.getJavaType().getAnnotation(EntityListeners.class);
if (entityListners != null) {
- for (Class<EntityListeners> entityListner : entityListners.value())
- {
- if (ODataJPATombstoneEntityListener.class.isAssignableFrom(entityListner)) {
- jpaEdmMapping
- .setODataJPATombstoneEntityListener((Class<? extends ODataJPATombstoneEntityListener>) entityListner);
- break;
- }
+ for (Class<EntityListeners> entityListner : entityListners.value()) {
+ if (ODataJPATombstoneEntityListener.class.isAssignableFrom(entityListner)) {
+ jpaEdmMapping
+ .setODataJPATombstoneEntityListener((Class<? extends ODataJPATombstoneEntityListener>)
+ (Object) entityListner);
+ break;
+ }
}
}
JPAEdmPropertyView propertyView = new JPAEdmProperty(schemaView);