You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by bu...@apache.org on 2014/07/01 08:41:11 UTC
svn commit: r914541 - in /websites/staging/olingo/trunk/content: ./
doc/tutorials/CustomODataJPAProcessor.html
Author: buildbot
Date: Tue Jul 1 06:41:11 2014
New Revision: 914541
Log:
Staging update by buildbot for olingo
Modified:
websites/staging/olingo/trunk/content/ (props changed)
websites/staging/olingo/trunk/content/doc/tutorials/CustomODataJPAProcessor.html
Propchange: websites/staging/olingo/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Jul 1 06:41:11 2014
@@ -1 +1 @@
-1606990
+1606991
Modified: websites/staging/olingo/trunk/content/doc/tutorials/CustomODataJPAProcessor.html
==============================================================================
--- websites/staging/olingo/trunk/content/doc/tutorials/CustomODataJPAProcessor.html (original)
+++ websites/staging/olingo/trunk/content/doc/tutorials/CustomODataJPAProcessor.html Tue Jul 1 06:41:11 2014
@@ -78,8 +78,7 @@
<p>Custom OData JPA Processor is supported from Apache Olingo release 1.1.0 onwards.</p>
<ol>
<li>
-<p>Write a Custom OData JPA Processor by extending the class <code>org.apache.olingo.odata2.jpa.processor.api.ODataJPAProcessor</code>.
-In the code snippet below, pre-process and post-process are two private methods that can be written to process the request and response. The instance variable (part of ODataJPAProcessor) <code>jpaProcessor</code> can be used to process the OData request. The <code>jpaProcessor</code> returns the JPA entities after processing the OData request. The instance variable <code>responseBuilder</code> can be used for building the OData response from the processed JPA entities.</p>
+<p>Write a Custom OData JPA Processor by extending the class <code>org.apache.olingo.odata2.jpa.processor.api.ODataJPAProcessor</code>. In the code snippet below, pre-process and post-process are two private methods that can be written to process the request and response. The instance variable (part of ODataJPAProcessor) <code>jpaProcessor</code> can be used to process the OData request. The <code>jpaProcessor</code> returns the JPA entities after processing the OData request. The instance variable <code>responseBuilder</code> can be used for building the OData response from the processed JPA entities.</p>
<div class="codehilite"><pre><span class="n">public</span> <span class="n">class</span> <span class="n">CustomODataJPAProcessor</span> <span class="n">extends</span> <span class="n">ODataJPAProcessor</span><span class="p">{</span>
<span class="p">@</span><span class="n">Override</span>
@@ -112,7 +111,7 @@ Implement an OData JPA service factory t
</li>
</ol>
<p>with </p>
-<div class="codehilite"><pre><span class="n">ODataSingleProcessor</span> <span class="n">odataJPAProcessor</span> <span class="p">=</span> <span class="n">new</span> <span class="n">CustomODataJPAProcessor</span><span class="p">(</span><span class="n">oDataJPAContext</span><span class="p">);</span>
+<div class="codehilite"><pre> <span class="n">ODataSingleProcessor</span> <span class="n">odataJPAProcessor</span> <span class="p">=</span> <span class="n">new</span> <span class="n">CustomODataJPAProcessor</span><span class="p">(</span><span class="n">oDataJPAContext</span><span class="p">);</span>
</pre></div>