You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Michael Kandefer (JIRA)" <ji...@apache.org> on 2016/05/09 15:31:12 UTC
[jira] [Created] (OLINGO-948) Olingo 2.0.6 JPA Extension:
EdmComplexTypeImplProv cannot be cast to EdmSimpleType
Michael Kandefer created OLINGO-948:
---------------------------------------
Summary: Olingo 2.0.6 JPA Extension: EdmComplexTypeImplProv cannot be cast to EdmSimpleType
Key: OLINGO-948
URL: https://issues.apache.org/jira/browse/OLINGO-948
Project: Olingo
Issue Type: Bug
Components: odata2-jpa
Affects Versions: V2 2.0.6
Environment: Windows 7 x64
JDK 1.8
Apache Tomcat 8.0.22
Spring Data REST
Olingo 2.0.6
Reporter: Michael Kandefer
When using the JPA Extension (as describe din the tutorial) to scan an entity that includes @Embedded objects the $metadata is created correctly with ComplexTypes as described in the tutorial. However, when retrieving the entity I receive a ClassCastException:
org.apache.olingo.odata2.core.edm.provider.EdmComplexTypeImplProv cannot be cast to org.apache.olingo.odata2.api.edm.EdmSimpleType
Class: org.apache.olingo.odata2.jpa.processor.core.access.data.JPAEntityParse
Method: getAccessModifiers
Line: 556
This error goes away if I remove the @Embedded objects and move their column definitions to the parent class. See the attached stack trace and Java code.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)