olingo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r910074 - in /websites/staging/olingo/trunk/content: ./ doc/tutorials/jparedefinemetadata.html
Date Tue, 27 May 2014 08:39:35 GMT
Author: buildbot
Date: Tue May 27 08:39:35 2014
New Revision: 910074

Log:
Staging update by buildbot for olingo

Modified:
    websites/staging/olingo/trunk/content/   (props changed)
    websites/staging/olingo/trunk/content/doc/tutorials/jparedefinemetadata.html

Propchange: websites/staging/olingo/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue May 27 08:39:35 2014
@@ -1 +1 @@
-1597722
+1597723

Modified: websites/staging/olingo/trunk/content/doc/tutorials/jparedefinemetadata.html
==============================================================================
--- websites/staging/olingo/trunk/content/doc/tutorials/jparedefinemetadata.html (original)
+++ websites/staging/olingo/trunk/content/doc/tutorials/jparedefinemetadata.html Tue May 27 08:39:35 2014
@@ -93,154 +93,8 @@
 <p><em>Note</em>: The names generated by applying the above rules can be overridden using JPA EDM Mapping models. JPA EDM mapping model can be maintained as an XML document according to the schema.</p>
 <h4 id="steps-to-redefine-the-metadata">Steps to Redefine the Metadata</h4>
 <ol>
-<li>Create a JPA EDM Mapping model XML according to the schema given below. In the XML, maintain the mapping only for those elements that needs to be redefined. For example, if JPA Entity Type A's name has to be redefined, then maintain an EDM name for the same.</li>
-</ol>
-<p>Schema</p>
-<div class="codehilite"><pre>    <span class="s-Atom">&lt;?xml</span> <span class="s-Atom">version=</span><span class="s2">&quot;1.0&quot;</span> <span class="s-Atom">encoding=</span><span class="s2">&quot;UTF-8&quot;</span><span class="s-Atom">?&gt;</span>
-    <span class="s-Atom">&lt;</span><span class="p">!</span><span class="s-Atom">--</span>
-      <span class="nv">Licensed</span> <span class="s-Atom">to</span> <span class="s-Atom">the</span> <span class="nv">Apache</span> <span class="nv">Software</span> <span class="nv">Foundation</span> <span class="p">(</span><span class="nv">ASF</span><span class="p">)</span> <span class="s-Atom">under</span> <span class="s-Atom">one</span> <span class="s-Atom">or</span> <span class="s-Atom">more</span> <span class="s-Atom">contributor</span> <span class="s-Atom">license</span> <span class="s-Atom">agreements</span><span class="p">.</span> <span class="nv">See</span> <span class="s-Atom">the</span> <span class="nv">NOTICE</span> <span class="s-Atom">file</span> <span class="s-Atom">distributed</span> <span class="s-Atom">with</span> <span class="s-Atom">this</span> <span class="s-Atom">work</span> <span class="s-Atom">for</span>
-      <span class="s-Atom">additional</span> <span class="s-Atom">information</span> <span class="s-Atom">regarding</span> <span class="s-Atom">copyright</span> <span class="s-Atom">ownership</span><span class="p">.</span> <span class="nv">The</span> <span class="nv">ASF</span> <span class="s-Atom">licenses</span> <span class="s-Atom">this</span> <span class="s-Atom">file</span> <span class="s-Atom">to</span> <span class="s-Atom">you</span> <span class="s-Atom">under</span> <span class="s-Atom">the</span> <span class="nv">Apache</span> <span class="nv">License</span><span class="p">,</span> <span class="nv">Version</span> <span class="m">2</span><span class="p">.</span><span class="m">0</span> <span class="p">(</span><span class="s-Atom">the</span> <span class="s2">&quot;License&quot;</span><span class="p">);</span>
-      <span class="s-Atom">you</span> <span class="s-Atom">may</span> <span class="o">not</span> <span class="s-Atom">use</span> <span class="s-Atom">this</span> <span class="s-Atom">file</span> <span class="s-Atom">except</span> <span class="s-Atom">in</span> <span class="s-Atom">compliance</span> <span class="s-Atom">with</span> <span class="s-Atom">the</span> <span class="nv">License</span><span class="p">.</span> <span class="nv">You</span> <span class="s-Atom">may</span> <span class="s-Atom">obtain</span> <span class="s-Atom">a</span> <span class="s-Atom">copy</span> <span class="s-Atom">of</span> <span class="s-Atom">the</span> <span class="nv">License</span> <span class="s-Atom">at</span> <span class="nn">http</span><span class="p">:</span><span class="o">//</span><span class="s-Atom">www</span><span class="p">.</span><span class="s-Atom">apache</span><span class="p">.</span><span class="s-Atom">org</span><span class="o">/</span><span class="s-Atom">licenses</span><span class
 ="o">/</span><span class="nv">LICENSE</span><span class="o">-</span><span class="m">2</span><span class="p">.</span><span class="m">0</span>
-
-     <span class="nv">Unless</span> <span class="s-Atom">required</span> <span class="s-Atom">by</span> <span class="s-Atom">applicable</span> <span class="s-Atom">law</span> <span class="s-Atom">or</span> <span class="s-Atom">agreed</span> <span class="s-Atom">to</span> <span class="s-Atom">in</span> <span class="s-Atom">writing</span><span class="p">,</span> <span class="s-Atom">software</span> <span class="s-Atom">distributed</span> <span class="s-Atom">under</span> <span class="s-Atom">the</span> <span class="nv">License</span> <span class="o">is</span> <span class="s-Atom">distributed</span> <span class="s-Atom">on</span> <span class="s-Atom">an</span> <span class="s2">&quot;AS IS&quot;</span> <span class="nv">BASIS</span><span class="p">,</span> <span class="nv">WITHOUT</span> 
-     <span class="nv">WARRANTIES</span> <span class="nv">OR</span> <span class="nv">CONDITIONS</span> <span class="nv">OF</span> <span class="nv">ANYKIND</span><span class="p">,</span> <span class="s-Atom">either</span> <span class="s-Atom">express</span> <span class="s-Atom">or</span> <span class="s-Atom">implied</span><span class="p">.</span> <span class="nv">See</span> <span class="s-Atom">the</span> <span class="nv">License</span> <span class="s-Atom">for</span> <span class="s-Atom">the</span> <span class="s-Atom">specific</span> <span class="s-Atom">language</span> <span class="s-Atom">governing</span> <span class="s-Atom">permissions</span> <span class="s-Atom">and</span> <span class="s-Atom">limitations</span> <span class="s-Atom">under</span> <span class="s-Atom">the</span>
-     <span class="nv">License</span><span class="p">.</span>
-    <span class="p">--&gt;</span>
-    <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">schema</span> <span class="s-Atom">attributeFormDefault=</span><span class="s2">&quot;unqualified&quot;</span>
-        <span class="s-Atom">elementFormDefault=</span><span class="s2">&quot;qualified&quot;</span> <span class="nn">xmlns</span><span class="p">:</span><span class="s-Atom">xs=</span><span class="s2">&quot;http://www.w3.org/2001/XMLSchema&quot;</span>
-        <span class="s-Atom">targetNamespace=</span><span class="s2">&quot;http://www.apache.org/olingo/odata2/jpa/processor/api/model/mapping&quot;</span>
-        <span class="nn">xmlns</span><span class="p">:</span><span class="s-Atom">tns=</span><span class="s2">&quot;http://www.apache.org/olingo/odata2/jpa/processor/api/model/mapping&quot;</span><span class="o">&gt;</span>
-
-        <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPAEDMMappingModel&quot;</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">annotation</span><span class="o">&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">documentation</span> <span class="nn">xml</span><span class="p">:</span><span class="s-Atom">lang=</span><span class="s2">&quot;en&quot;</span><span class="o">&gt;</span>
-                    <span class="nv">Java</span> <span class="nv">Persistence</span> <span class="p">(</span><span class="nv">JPA</span><span class="p">)</span> <span class="o">-</span>
-                    <span class="nv">Entity</span> <span class="nv">Data</span> <span class="nv">Model</span> <span class="p">(</span><span class="nv">EDM</span><span class="p">)</span> <span class="nv">Mapping</span> <span class="s-Atom">schema</span><span class="p">.</span> <span class="nv">The</span> <span class="s-Atom">schema</span> <span class="s-Atom">defines</span> <span class="s-Atom">a</span> <span class="s-Atom">mapping</span> <span class="s-Atom">model</span> <span class="s-Atom">to</span> <span class="s-Atom">describe</span> <span class="nv">EDM</span> <span class="s-Atom">names</span> <span class="s-Atom">for</span> <span class="s-Atom">entity</span> <span class="s-Atom">types</span><span class="p">,</span> <span class="s-Atom">entity</span> <span class="s-Atom">sets</span><span class="p">,</span>
-                    <span class="s-Atom">entity</span> <span class="s-Atom">properties</span><span class="p">,</span> <span class="s-Atom">entity</span> <span class="s-Atom">navigation</span> <span class="s-Atom">properties</span><span class="p">.</span> <span class="nv">By</span> <span class="s-Atom">default</span> <span class="s-Atom">the</span> <span class="s-Atom">names</span> <span class="s-Atom">of</span> <span class="nv">Java</span> <span class="nv">Persistence</span> <span class="s-Atom">entity</span> <span class="s-Atom">types</span><span class="p">,</span> <span class="s-Atom">entity</span> <span class="s-Atom">attributes</span> 
-                    <span class="s-Atom">and</span> <span class="s-Atom">entity</span> <span class="s-Atom">relationships</span> <span class="s-Atom">are</span> <span class="s-Atom">transformed</span> <span class="s-Atom">into</span> <span class="s-Atom">their</span> <span class="s-Atom">corresponding</span> <span class="nv">EDM</span> <span class="s-Atom">names</span><span class="p">.</span> <span class="nv">To</span> <span class="s-Atom">override</span> <span class="s-Atom">the</span> <span class="s-Atom">default</span> <span class="s-Atom">names</span> <span class="s-Atom">the</span> <span class="s-Atom">mapping</span> <span class="s-Atom">model</span>
-                    <span class="o">is</span> <span class="s-Atom">defined</span><span class="p">.</span>
-
-              <span class="nv">Note</span><span class="p">:-</span> <span class="nv">Define</span> <span class="s-Atom">the</span> <span class="s-Atom">mapping</span> <span class="s-Atom">model</span> <span class="s-Atom">for</span> <span class="s-Atom">only</span> <span class="s-Atom">those</span> <span class="s-Atom">default</span> <span class="s-Atom">names</span> <span class="s-Atom">that</span> <span class="s-Atom">needs</span> <span class="s-Atom">to</span> <span class="s-Atom">be</span> <span class="s-Atom">overridden</span><span class="p">.</span>
-
-                <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">documentation</span><span class="o">&gt;</span>
-            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">annotation</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span><span class="o">&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-                    <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span> <span class="s-Atom">name=</span><span class="s2">&quot;PersistenceUnit&quot;</span> <span class="s-Atom">type=</span><span class="s2">&quot;tns:JPAPersistenceUnitMapType&quot;</span>
-                        <span class="s-Atom">maxOccurs=</span><span class="s2">&quot;1&quot;</span> <span class="s-Atom">minOccurs=</span><span class="s2">&quot;1&quot;</span> <span class="s-Atom">/&gt;</span>
-                <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span><span class="o">&gt;</span>
-        <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span><span class="o">&gt;</span>
-
-        <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPAAttributeMapType&quot;</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">annotation</span><span class="o">&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">documentation</span> <span class="nn">xml</span><span class="p">:</span><span class="s-Atom">lang=</span><span class="s2">&quot;en&quot;</span><span class="o">&gt;</span>
-                    <span class="nv">The</span> <span class="s-Atom">default</span> <span class="s-Atom">name</span> <span class="s-Atom">for</span> <span class="nv">EDM</span> <span class="s-Atom">property</span> <span class="o">is</span> <span class="s-Atom">derived</span> <span class="s-Atom">from</span> <span class="nv">JPA</span> <span class="s-Atom">attribute</span> <span class="s-Atom">name</span><span class="p">.</span> <span class="nv">This</span> <span class="s-Atom">can</span> <span class="s-Atom">be</span> <span class="s-Atom">overridden</span> <span class="s-Atom">using</span> <span class="nv">JPAAttributeMapType</span><span class="p">.</span>
-                <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">documentation</span><span class="o">&gt;</span>
-            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">annotation</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPAAttribute&quot;</span> <span class="s-Atom">maxOccurs=</span><span class="s2">&quot;unbounded&quot;</span> 
-                    <span class="s-Atom">minOccurs=</span><span class="s2">&quot;0&quot;</span><span class="o">&gt;</span>
-                    <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span><span class="o">&gt;</span>
-                        <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">simpleContent</span><span class="o">&gt;</span>
-                            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">extension</span> <span class="s-Atom">base=</span><span class="s2">&quot;xs:string&quot;</span><span class="o">&gt;</span>
-                                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">attribute</span> <span class="s-Atom">type=</span><span class="s2">&quot;xs:string&quot;</span> <span class="s-Atom">name=</span><span class="s2">&quot;name&quot;</span> <span class="s-Atom">use=</span><span class="s2">&quot;required&quot;</span> <span class="s-Atom">/&gt;</span>
-                                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">attribute</span> <span class="s-Atom">type=</span><span class="s2">&quot;xs:boolean&quot;</span> <span class="s-Atom">name=</span><span class="s2">&quot;exclude&quot;</span> <span class="s-Atom">use=</span><span class="s2">&quot;optional&quot;</span>
-                                    <span class="s-Atom">default=</span><span class="s2">&quot;false&quot;</span> <span class="s-Atom">/&gt;</span>
-                            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">extension</span><span class="o">&gt;</span>
-                        <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">simpleContent</span><span class="o">&gt;</span>
-                    <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span><span class="o">&gt;</span>
-                <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span><span class="o">&gt;</span>
-            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-        <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span><span class="o">&gt;</span>
-
-        <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPARelationshipMapType&quot;</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">annotation</span><span class="o">&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">documentation</span> <span class="nn">xml</span><span class="p">:</span><span class="s-Atom">lang=</span><span class="s2">&quot;en&quot;</span><span class="o">&gt;</span>
-                    <span class="nv">The</span> <span class="s-Atom">default</span> <span class="s-Atom">name</span> <span class="s-Atom">for</span> <span class="nv">EDM</span> <span class="s-Atom">navigation</span> <span class="s-Atom">property</span> <span class="o">is</span> <span class="s-Atom">derived</span> <span class="s-Atom">from</span> <span class="nv">JPA</span> <span class="s-Atom">relationship</span> <span class="s-Atom">name</span><span class="p">.</span> <span class="nv">This</span> <span class="s-Atom">can</span> <span class="s-Atom">be</span> <span class="s-Atom">overridden</span> <span class="s-Atom">using</span> <span class="nv">JPARelationshipMapType</span><span class="p">.</span>
-                <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">documentation</span><span class="o">&gt;</span>
-            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">annotation</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPARelationship&quot;</span> <span class="s-Atom">maxOccurs=</span><span class="s2">&quot;unbounded&quot;</span> 
-                    <span class="s-Atom">minOccurs=</span><span class="s2">&quot;0&quot;</span><span class="o">&gt;</span>
-                    <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span><span class="o">&gt;</span>
-                        <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">simpleContent</span><span class="o">&gt;</span>
-                            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">extension</span> <span class="s-Atom">base=</span><span class="s2">&quot;xs:string&quot;</span><span class="o">&gt;</span>
-                                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">attribute</span> <span class="s-Atom">type=</span><span class="s2">&quot;xs:string&quot;</span> <span class="s-Atom">name=</span><span class="s2">&quot;name&quot;</span> <span class="s-Atom">use=</span><span class="s2">&quot;required&quot;</span> <span class="s-Atom">/&gt;</span>
-                            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">extension</span><span class="o">&gt;</span>
-                        <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">simpleContent</span><span class="o">&gt;</span>
-                    <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span><span class="o">&gt;</span>
-                <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span><span class="o">&gt;</span>
-            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-        <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span><span class="o">&gt;</span>
-
-        <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPAEntityTypeMapType&quot;</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">annotation</span><span class="o">&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">documentation</span> <span class="nn">xml</span><span class="p">:</span><span class="s-Atom">lang=</span><span class="s2">&quot;en&quot;</span><span class="o">&gt;</span>
-                    <span class="nv">The</span> <span class="s-Atom">default</span> <span class="s-Atom">name</span> <span class="s-Atom">for</span> <span class="nv">EDM</span> <span class="s-Atom">entity</span> <span class="s-Atom">type</span> <span class="o">is</span> <span class="s-Atom">derived</span> <span class="s-Atom">from</span> <span class="nv">JPA</span> <span class="s-Atom">entity</span> <span class="s-Atom">type</span> <span class="s-Atom">name</span><span class="p">.</span> <span class="nv">This</span> <span class="s-Atom">can</span> <span class="s-Atom">be</span> <span class="s-Atom">overridden</span> <span class="s-Atom">using</span> <span class="nv">JPAEntityTypeMapType</span><span class="p">.</span>
-                <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">documentation</span><span class="o">&gt;</span>
-            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">annotation</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span> <span class="s-Atom">type=</span><span class="s2">&quot;xs:string&quot;</span> <span class="s-Atom">name=</span><span class="s2">&quot;EDMEntityType&quot;</span>
-                    <span class="s-Atom">maxOccurs=</span><span class="s2">&quot;1&quot;</span> <span class="s-Atom">minOccurs=</span><span class="s2">&quot;0&quot;</span> <span class="s-Atom">/&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span> <span class="s-Atom">type=</span><span class="s2">&quot;xs:string&quot;</span> <span class="s-Atom">name=</span><span class="s2">&quot;EDMEntitySet&quot;</span>
-                    <span class="s-Atom">maxOccurs=</span><span class="s2">&quot;1&quot;</span> <span class="s-Atom">minOccurs=</span><span class="s2">&quot;0&quot;</span> <span class="s-Atom">/&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPAAttributes&quot;</span>    <span class="s-Atom">type=</span><span class="s2">&quot;tns:JPAAttributeMapType&quot;</span> <span class="s-Atom">/&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPARelationships&quot;</span> <span class="s-Atom">type=</span><span class="s2">&quot;tns:JPARelationshipMapType&quot;</span> <span class="s-Atom">/&gt;</span>
-            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">attribute</span> <span class="s-Atom">type=</span><span class="s2">&quot;xs:string&quot;</span> <span class="s-Atom">name=</span><span class="s2">&quot;name&quot;</span> <span class="s-Atom">use=</span><span class="s2">&quot;required&quot;</span> <span class="s-Atom">/&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">attribute</span> <span class="s-Atom">type=</span><span class="s2">&quot;xs:boolean&quot;</span> <span class="s-Atom">name=</span><span class="s2">&quot;exclude&quot;</span> <span class="s-Atom">use=</span><span class="s2">&quot;optional&quot;</span> <span class="s-Atom">default=</span><span class="s2">&quot;false&quot;</span> <span class="s-Atom">/&gt;</span>
-        <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span><span class="o">&gt;</span>
-
-        <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPAEntityTypesMapType&quot;</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPAEntityType&quot;</span> <span class="s-Atom">type=</span><span class="s2">&quot;tns:JPAEntityTypeMapType&quot;</span> 
-                    <span class="s-Atom">maxOccurs=</span><span class="s2">&quot;unbounded&quot;</span> <span class="s-Atom">minOccurs=</span><span class="s2">&quot;0&quot;</span> <span class="s-Atom">/&gt;</span>
-            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-        <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span><span class="o">&gt;</span>
-        <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPAEmbeddableTypeMapType&quot;</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">annotation</span><span class="o">&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">documentation</span> <span class="nn">xml</span><span class="p">:</span><span class="s-Atom">lang=</span><span class="s2">&quot;en&quot;</span><span class="o">&gt;</span>
-                    <span class="nv">The</span> <span class="s-Atom">default</span> <span class="s-Atom">name</span> <span class="s-Atom">for</span> <span class="nv">EDM</span> <span class="s-Atom">complex</span> <span class="s-Atom">type</span> <span class="o">is</span> <span class="s-Atom">derived</span> <span class="s-Atom">from</span> <span class="nv">JPA</span> <span class="nv">Embeddable</span> <span class="s-Atom">type</span> <span class="s-Atom">name</span><span class="p">.</span> <span class="nv">This</span> <span class="s-Atom">can</span> <span class="s-Atom">be</span> <span class="s-Atom">overridden</span> <span class="s-Atom">using</span> <span class="nv">JPAEmbeddableTypeMapType</span><span class="p">.</span>
-                <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">documentation</span><span class="o">&gt;</span>
-            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">annotation</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span> <span class="s-Atom">type=</span><span class="s2">&quot;xs:string&quot;</span> <span class="s-Atom">name=</span><span class="s2">&quot;EDMComplexType&quot;</span> 
-                    <span class="s-Atom">maxOccurs=</span><span class="s2">&quot;1&quot;</span> <span class="s-Atom">minOccurs=</span><span class="s2">&quot;0&quot;</span> <span class="s-Atom">/&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPAAttributes&quot;</span> <span class="s-Atom">type=</span><span class="s2">&quot;tns:JPAAttributeMapType&quot;</span> <span class="s-Atom">/&gt;</span>
-            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">attribute</span> <span class="s-Atom">type=</span><span class="s2">&quot;xs:string&quot;</span> <span class="s-Atom">name=</span><span class="s2">&quot;name&quot;</span> <span class="s-Atom">use=</span><span class="s2">&quot;required&quot;</span> <span class="s-Atom">/&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">attribute</span> <span class="s-Atom">type=</span><span class="s2">&quot;xs:boolean&quot;</span> <span class="s-Atom">name=</span><span class="s2">&quot;exclude&quot;</span> <span class="s-Atom">use=</span><span class="s2">&quot;optional&quot;</span> 
-                <span class="s-Atom">default=</span><span class="s2">&quot;false&quot;</span> <span class="s-Atom">/&gt;</span>
-        <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span><span class="o">&gt;</span>
-
-        <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPAEmbeddableTypesMapType&quot;</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPAEmbeddableType&quot;</span> <span class="s-Atom">type=</span><span class="s2">&quot;tns:JPAEmbeddableTypeMapType&quot;</span> 
-                    <span class="s-Atom">maxOccurs=</span><span class="s2">&quot;unbounded&quot;</span> <span class="s-Atom">minOccurs=</span><span class="s2">&quot;0&quot;</span> <span class="s-Atom">/&gt;</span>
-            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-        <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span><span class="o">&gt;</span>
-
-        <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPAPersistenceUnitMapType&quot;</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">annotation</span><span class="o">&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">documentation</span> <span class="nn">xml</span><span class="p">:</span><span class="s-Atom">lang=</span><span class="s2">&quot;en&quot;</span><span class="o">&gt;</span>
-                    <span class="nv">By</span> <span class="s-Atom">default</span> <span class="nv">Java</span> <span class="nv">Persistence</span> <span class="nv">Unit</span> <span class="s-Atom">name</span> <span class="o">is</span> <span class="s-Atom">taken</span> <span class="s-Atom">as</span> <span class="nv">EDM</span> <span class="s-Atom">schema</span> <span class="s-Atom">name</span><span class="p">.</span> <span class="nv">This</span> <span class="s-Atom">can</span> <span class="s-Atom">be</span> <span class="s-Atom">overridden</span> <span class="s-Atom">using</span> <span class="nv">JPAPersistenceUnitMapType</span><span class="p">.</span>
-                <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">documentation</span><span class="o">&gt;</span>
-            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">annotation</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span> <span class="s-Atom">type=</span><span class="s2">&quot;xs:string&quot;</span> <span class="s-Atom">name=</span><span class="s2">&quot;EDMSchemaNamespace&quot;</span> 
-                    <span class="s-Atom">maxOccurs=</span><span class="s2">&quot;1&quot;</span> <span class="s-Atom">minOccurs=</span><span class="s2">&quot;0&quot;</span> <span class="s-Atom">/&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPAEntityTypes&quot;</span> <span class="s-Atom">type=</span><span class="s2">&quot;tns:JPAEntityTypesMapType&quot;</span> <span class="s-Atom">/&gt;</span>
-                <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">element</span> <span class="s-Atom">name=</span><span class="s2">&quot;JPAEmbeddableTypes&quot;</span> <span class="s-Atom">type=</span><span class="s2">&quot;tns:JPAEmbeddableTypesMapType&quot;</span> <span class="s-Atom">/&gt;</span>
-            <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">sequence</span><span class="o">&gt;</span>
-            <span class="o">&lt;</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">attribute</span> <span class="s-Atom">type=</span><span class="s2">&quot;xs:string&quot;</span> <span class="s-Atom">name=</span><span class="s2">&quot;name&quot;</span> <span class="s-Atom">use=</span><span class="s2">&quot;required&quot;</span> <span class="s-Atom">/&gt;</span>
-        <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">complexType</span><span class="o">&gt;</span>
-
-    <span class="s-Atom">&lt;/</span><span class="nn">xs</span><span class="p">:</span><span class="s-Atom">schema</span>
-</pre></div>
-
-
-<ol>
+<li>Create a JPA EDM Mapping model XML according to the schema given below. In the XML, maintain the mapping only for those elements that needs to be redefined. For example, if JPA Entity Type A's name has to be redefined, then maintain an EDM name for the same.
+   Link to <a href="https://cms.apache.org/olingo/wc/browse/deepa-udCb40/trunk/content/resources/RedefiningTheMetadataSchema">Schema</a>.</li>
 <li>Deploy the JPA EDM Mapping model XML file in the root directory of your web application archive (store it in the same directory as 'WEB-INF').</li>
 <li>
 <p>Pass the XML name into <em>ODataJPAContext</em>. In the method <em>initializeODataJPAContext</em>, pass the name of the XML document as shown below:</p>



Mime
View raw message