[ https://issues.apache.org/jira/browse/OLINGO-948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Kandefer closed OLINGO-948. ----------------------------------- Resolution: Not A Problem And I found the bug in my entity. Lombok was breaking and not creating a getter/setter for the embedded. > 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 > Attachments: $metadata.xml, olingo-json-debug.txt > > > 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)