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)

Reply via email to