[ 
https://issues.apache.org/jira/browse/OLINGO-329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14047502#comment-14047502
 ] 

Rudy Gardelein commented on OLINGO-329:
---------------------------------------

Dear Chandan,


Many thanks for looking into this issue.

To explain the issue on the Boolean data type:  Actually the data type as 
existing in the MySQL database is bit(1), which is a common representation for 
a boolean in MySQL.  I would expect the Olingo Library to handle this as a 
boolean in Java, but unfortunately it is translating into a Byte[] data type 
which is causing problems lateron for the exposure of the service.

Hope this explains the issue further, and looking forward to your response.

Best regards,


Rudy

> Not all JPA data types handled correctly
> ----------------------------------------
>
>                 Key: OLINGO-329
>                 URL: https://issues.apache.org/jira/browse/OLINGO-329
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-jpa
>    Affects Versions: V2 1.2.0
>            Reporter: Rudy Gardelein
>            Assignee: Chandan V.A
>             Fix For: V2 2.0.0
>
>
> As described in the following link 
> (http://scn.sap.com/community/gateway/blog/2014/02/05/odata-producer-using-apache-olingo-with-mysql-jpa-tomcat-web-server)
>   there are issues with the correct translation of JPA data types boolean and 
> timestamp in version V2 1.2 of Olingo.
> Boolean datatype is translated to Java byte type.  Timestamp is translated to 
> Java timestamp.  Both of these however do not work in the Odata service as 
> generated by Olingo.
> Raising this issue as suggested by Chandan V.A. from SAP.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to