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

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

Following are the improvements
# A new interface is introduced - 
*org.apache.olingo.odata2.jpa.processor.api.ODataJPAResponseBuilder* in jpa-api 
module.
# A default internal implementation of the interface is provided - 
*org.apache.olingo.odata2.jpa.processor.core.ODataJPAResponseBuilderDefault* in 
jpa-core module.
# A reference to default implementation could be obtained using the 
ODataJPAAccessFactory class as shown below
{code}ODataJPAFactory.createFactory().getODataJPAAccessFactory().getODataJPAResponseBuilder(<ODataJPAContext>);{code}
# The ODataJPAProcessor abstract class is enhanced by encapsulating an instance 
of type ODataJPAResponseBuilder. Classes extending the abstract class gets 
access to the response builder via the protected member variable 
*responseBuilder*. The subclass also gets access to the OData request processor 
via the protected member variable *jpaProcessor*.




> Expose ODataJPAResponseBuilder for External Usage
> -------------------------------------------------
>
>                 Key: OLINGO-103
>                 URL: https://issues.apache.org/jira/browse/OLINGO-103
>             Project: Olingo
>          Issue Type: Improvement
>          Components: odata2-jpa
>            Reporter: Chandan V.A
>            Assignee: Chandan V.A
>             Fix For: V2 1.1.0
>
>
> At times it is required to write an own OData - JPA Processor instead of 
> using the default OData - JPA processor - 
> org.apache.olingo.odata2.jpa.processor.core.ODataJPAProcessorDefault. 
> One could implement a OData JPA processor by extending the 
> org.apache.olingo.odata2.jpa.processor.api.ODataJPAProcessor class. The class 
> encapsulates an instance for processing OData request 
> (org.apache.olingo.odata2.jpa.processor.api.access.JPAProcessor). 
> However to build an OData response from a JPA Entity for a given OData 
> request there is no such instance encapsulated.
> Hence extend ODataJPAProcessor class to encapsulate a OData JPA Response 
> builder which can be used by the subclasses for building OData Responses from 
> JPA Entity.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to