Peter Rilling created OLINGO-943:
------------------------------------

             Summary: Add support for using java.time.* in JPA model.
                 Key: OLINGO-943
                 URL: https://issues.apache.org/jira/browse/OLINGO-943
             Project: Olingo
          Issue Type: Bug
          Components: odata2-jpa
    Affects Versions: V2 2.0.6
            Reporter: Peter Rilling


I tried to create a model property with a type of LocalDateTime (with a JPA 
converter since this is not supported by JPA yet).  However, I get the 
exception "OData - JPA Type Converter: Type [class java.time.LocalDateTime] not 
supported".  

>From looking at the method convertToEdmSimpleType, it seams that there is only 
>a finite set of Java types that are acceptable, without allowing custom ones.

The work around might be to make this a string and then have the 
AttributeConverter to the heavy lifting.



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

Reply via email to