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

Chandan V.A commented on OLINGO-185:
------------------------------------

Hi Carl,
Please refer to the updated proposal at - 
https://wiki.apache.org/Olingo/ojp-handling-blob-proposal.

A new call back interface OnJPAWriteContent is introduced with the Library 
which should be used for providing JPA provider specific implementation of Blob 
and Clob objects. The reference scenario which uses EclipseLink as JPA provider 
and HSQL DB as the underlying DB platform has following implementation for 
supporting HSQL DB specific Blob and Clob objects. 

A) JPA Converters 
(org.apache.olingo.odata2.jpa.processor.ref.converter.BlobToByteConverter) to 
convert a byte based DB column to Blob based Entity Property.
B) A call back implementation 
org.apache.olingo.odata2.jpa.processor.ref.extension.OnDBWriteContent to 
instantiate Blob and Clob objects.

I hope this should address the use case. Can you please check whether this 
works for your Hibernate based providers.

Thanks
Kind regards
Chandan




> support for Clob
> ----------------
>
>                 Key: OLINGO-185
>                 URL: https://issues.apache.org/jira/browse/OLINGO-185
>             Project: Olingo
>          Issue Type: New Feature
>          Components: odata2-jpa
>    Affects Versions: V2 1.2.0
>            Reporter: Carl J. Mosca
>            Assignee: Chandan V.A
>            Priority: Blocker
>              Labels: blob, clob, jpa
>             Fix For: V2 1.3.0
>
>         Attachments: 
> org.apache.olingo.odata2.jpa.processor.core.access.model.JPATypeConverter.java.diff
>
>
> support for Clob (other BLOB types?)  We have successfully processed these as 
> String type



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

Reply via email to