[hibernate-commits] Hibernate SVN: r18875 - core/trunk/entitymanager/src/main/docbook/en/modules.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Wed Feb 24 16:40:58 EST 2010


Author: steve.ebersole at jboss.com
Date: 2010-02-24 16:40:58 -0500 (Wed, 24 Feb 2010)
New Revision: 18875

Modified:
   core/trunk/entitymanager/src/main/docbook/en/modules/metamodel.xml
   core/trunk/entitymanager/src/main/docbook/en/modules/query_criteria.xml
Log:
misc minor doc cleanups

Modified: core/trunk/entitymanager/src/main/docbook/en/modules/metamodel.xml
===================================================================
--- core/trunk/entitymanager/src/main/docbook/en/modules/metamodel.xml	2010-02-24 21:26:24 UTC (rev 18874)
+++ core/trunk/entitymanager/src/main/docbook/en/modules/metamodel.xml	2010-02-24 21:40:58 UTC (rev 18875)
@@ -23,8 +23,8 @@
   ~ Boston, MA  02110-1301  USA
   -->
 <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY jpa2Biblio '<xref linkend="JPA2"/>'>
-<!ENTITY jpa2Cite '<citation>&jpa2Biblio;</citation>'>
+<!ENTITY jpa2Ref '<xref linkend="JPA2"/>'>
+<!ENTITY jpa2Cite '<citation>&jpa2Ref;</citation>'>
 <!ENTITY criteriaRef '<xref linkend="querycriteria"/>'>
 <!ENTITY apt '<ulink url="http://java.sun.com/javase/6/docs/technotes/tools/solaris/javac.html#processing">annotation processor</ulink>'>
 ]>
@@ -43,20 +43,19 @@
     <para>
         The metamodel is a set of objects that describe your domain model.
         <interfacename>javax.persistence.metamodel.Metamodel</interfacename> acts as a repository of these metamodel
-        objects and provides access to them.  We ask either the
+        objects and provides access to them, and can be obtained from either the
         <interfacename>javax.persistence.EntityManagerFactory</interfacename> or the
-        <interfacename>javax.persistence.EntityManager</interfacename> for a reference to the
-        <interfacename>javax.persistence.metamodel.Metamodel</interfacename> via their
+        <interfacename>javax.persistence.EntityManager</interfacename> via their
         <methodname>getMetamodel</methodname> method.
     </para>
 
     <para>
         This metamodel is important in 2 ways.  First, it allows providers and frameworks a generic way to
         deal with an application's domain model.  Persistence providers will already have some form of
-        metamodel that they use to describe the domain model being mapped.  This API simply allows general access
-        to that existing information.  A validation framework, for example, could use this information to
-        understand associations; a marshaling framework might use this information to decide how much of an
-        entity graph to marshal.  This usage is beyond the scope of this documentation.
+        metamodel that they use to describe the domain model being mapped.  This API however defines a single,
+        independent access to that existing information.  A validation framework, for example, could use this
+        information to understand associations; a marshaling framework might use this information to decide how
+        much of an entity graph to marshal.  This usage is beyond the scope of this documentation.
     </para>
 
     <important>
@@ -86,7 +85,7 @@
 
         <blockquote>
             <attribution>
-                <citation><xref linkend="JPA2"/>, section 6.2.1.1, pp 198-199</citation>
+                <citation>&jpa2Ref;, section 6.2.1.1, pp 198-199</citation>
             </attribution>
             <para>
                 <itemizedlist>
@@ -233,7 +232,7 @@
             When the Hibernate <interfacename>EntityManagerFactory</interfacename> is being built, it will
             look for a canonical metamodel class for each of the managed typed is knows about and if it finds
             any it will inject the appropriate metamodel information into them, as outlined in
-            <citation><xref linkend="JPA2"/>, section 6.2.2, pg 200</citation>
+            <citation>&jpa2Ref;, section 6.2.2, pg 200</citation>
         </para>
     </section>
 

Modified: core/trunk/entitymanager/src/main/docbook/en/modules/query_criteria.xml
===================================================================
--- core/trunk/entitymanager/src/main/docbook/en/modules/query_criteria.xml	2010-02-24 21:26:24 UTC (rev 18874)
+++ core/trunk/entitymanager/src/main/docbook/en/modules/query_criteria.xml	2010-02-24 21:40:58 UTC (rev 18875)
@@ -22,7 +22,12 @@
   ~ 51 Franklin Street, Fifth Floor
   ~ Boston, MA  02110-1301  USA
   -->
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" []>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY jpa2Ref '<xref linkend="JPA2"/>'>
+<!ENTITY jpa2Cite '<citation>&jpa2Ref;</citation>'>
+<!ENTITY staticMetamodelRef '<xref linkend="metamodel-static"/>'>
+]>
+
 <chapter id="querycriteria">
     <title>Criteria Queries</title>
 
@@ -65,10 +70,10 @@
 
     <note>
         <para>
-            <citetitle pubwork="chapter">Chapter 6 Criteria API</citetitle> of the
-            <citation><xref linkend="JPA2"/></citation> already contains a decent amount of reference material
-            pertaining to the various parts of a criteria query.  So rather than duplicate all that content here,
-            lets instead look at some of the more widely (anticipated) usages of the API.
+            <citetitle pubwork="chapter">Chapter 6 Criteria API</citetitle> of the &jpa2Cite; already contains a
+            decent amount of reference material pertaining to the various parts of a criteria query.  So rather
+            than duplicate all that content here, lets instead look at some of the more widely anticipated usages
+            of the API.
         </para>
     </note>
 
@@ -124,7 +129,7 @@
                         <para>
                             <emphasis>Person_.eyeColor</emphasis> is an example of the static form of metamodel
                             reference.  We will use that form exclusively in this chapter.
-                            See (todo link to metamodel section once written).
+                            See &staticMetamodelRef; for details.
                         </para>
                     </callout>
                 </calloutlist>
@@ -486,7 +491,7 @@
         <title>FROM clause</title>
         <blockquote>
             <attribution>
-                <citation><xref linkend="JPA2"/></citation>
+                <citation>&jpa2Ref;, section 6.5.2 Query Roots, pg 262</citation>
             </attribution>
             <para>
                 A CriteriaQuery object defines a query over one or more entity, embeddable, or basic abstract



More information about the hibernate-commits mailing list