You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Aleh Autushka (JIRA)" <ji...@apache.org> on 2014/12/17 23:13:14 UTC

[jira] [Created] (OLINGO-525) Issue with Post operation for the entity with embedded class that contains timeStamp (TemporalType.TIMESTAMP)

Aleh Autushka created OLINGO-525:
------------------------------------

             Summary: Issue with Post operation for the entity with embedded class that contains  timeStamp (TemporalType.TIMESTAMP)
                 Key: OLINGO-525
                 URL: https://issues.apache.org/jira/browse/OLINGO-525
             Project: Olingo
          Issue Type: Bug
          Components: odata2-jpa
            Reporter: Aleh Autushka


Hello,

Getting 500 error when try to create an entity that contains an embedded class with a timeStamp:

<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code />
<message xml:lang="en">"OData - JPA Runtime: JPA create request is not correct"</message>
<innererror>class org.apache.olingo.odata2.jpa.processor.api.exception.ODataJPARuntimeException : "org.apache.olingo.odata2.jpa.processor.core.access.data.JPAEntityParser: com.projectx.dal.model.GeneralAttributes.setTimeStamp(java.sql.Timestamp). "</innererror>
 </error>

In my case embedded class is GeneralAttributes and it contains an attribute TimeStamp of type TemporalType.TIMESTAMP. If I remove timestamp attribute or move it to higher level everything works fine.

Br, Aleh



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)