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

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

Hi,
This issue is fixed with 
http://git-wip-us.apache.org/repos/asf/olingo-odata2/commit/2636dd5f.

Function Imports with $value call is now supported in JPA processor. Function 
Imports can return Simple Types either as plain text or as octect-stream when 
called with $value option. Example - /service/getImage/$value?id = 1L. If a 
function import needs to return an Edm.Binary type then the Java method 
annotated as @EdmFunctionImport should return java type as byte array (byte[]).

See class - 
org.apache.olingo.odata2.jpa.processor.ref.extension.CustomerImageProcessor in 
module olingo-odata2-jpa-processor-ref-web for more details.

Regards
Chandan

> Enhance JPA processor library to support a byte array return type
> -----------------------------------------------------------------
>
>                 Key: OLINGO-516
>                 URL: https://issues.apache.org/jira/browse/OLINGO-516
>             Project: Olingo
>          Issue Type: Bug
>            Reporter: Iliyan Velichkov
>            Assignee: Chandan V.A
>




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

Reply via email to