You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by bu...@apache.org on 2012/10/31 21:37:42 UTC

svn commit: r836785 - in /websites/staging/cayenne/trunk/content: ./ doc30/tutorial-java-classes.html doc30/tutorial-objectcontext.html doc30/tutorial-persistent-objects.html doc30/tutorial-selectquery.html

Author: buildbot
Date: Wed Oct 31 20:37:41 2012
New Revision: 836785

Log:
Staging update by buildbot for cayenne

Modified:
    websites/staging/cayenne/trunk/content/   (props changed)
    websites/staging/cayenne/trunk/content/doc30/tutorial-java-classes.html
    websites/staging/cayenne/trunk/content/doc30/tutorial-objectcontext.html
    websites/staging/cayenne/trunk/content/doc30/tutorial-persistent-objects.html
    websites/staging/cayenne/trunk/content/doc30/tutorial-selectquery.html

Propchange: websites/staging/cayenne/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Oct 31 20:37:41 2012
@@ -1 +1 @@
-1404336
+1404337

Modified: websites/staging/cayenne/trunk/content/doc30/tutorial-java-classes.html
==============================================================================
--- websites/staging/cayenne/trunk/content/doc30/tutorial-java-classes.html (original)
+++ websites/staging/cayenne/trunk/content/doc30/tutorial-java-classes.html Wed Oct 31 20:37:41 2012
@@ -39,9 +39,11 @@
 
 <hr>
 <div id="content">
-       	<P>Here we'll generate the Java classes from the model that was created in the previous section. CayenneModeler can be used to also generate the database schema, but since we specified &quot;CreateIfNoSchemaStrategy&quot; earlier when we created a DataNode, we'll skip the database schema step. Still be aware that you can do it if you need to via <TT>&quot;Tools &gt; Create Database Schema&quot;</TT>.</P>
+       <h2>Tutorial Java Classes</h2>
 
-<H3><A name="TutorialJavaClasses-CreatingJavaClasses"></A>Creating Java Classes</H3>
+	<P>Here we'll generate the Java classes from the model that was created in the previous section. CayenneModeler can be used to also generate the database schema, but since we specified &quot;CreateIfNoSchemaStrategy&quot; earlier when we created a DataNode, we'll skip the database schema step. Still be aware that you can do it if you need to via <TT>&quot;Tools &gt; Create Database Schema&quot;</TT>.</P>
+
+<H3>Creating Java Classes</H3>
 
 <UL>
 	<LI>Select <TT>&quot;Tools &gt; Generate Classes&quot;</TT> menu.</LI>

Modified: websites/staging/cayenne/trunk/content/doc30/tutorial-objectcontext.html
==============================================================================
--- websites/staging/cayenne/trunk/content/doc30/tutorial-objectcontext.html (original)
+++ websites/staging/cayenne/trunk/content/doc30/tutorial-objectcontext.html Wed Oct 31 20:37:41 2012
@@ -39,7 +39,9 @@
 
 <hr>
 <div id="content">
-       	<P>In this section we'll write a simple main class to run our application, and get a brief introduction to Cayenne ObjectContext.</P>
+       <h2>Tutorial ObjectContext</h2>
+
+	<P>In this section we'll write a simple main class to run our application, and get a brief introduction to Cayenne ObjectContext.</P>
 
 <H3><A name="TutorialObjectContext-CreatingtheMainClass"></A>Creating the Main Class</H3>
 

Modified: websites/staging/cayenne/trunk/content/doc30/tutorial-persistent-objects.html
==============================================================================
--- websites/staging/cayenne/trunk/content/doc30/tutorial-persistent-objects.html (original)
+++ websites/staging/cayenne/trunk/content/doc30/tutorial-persistent-objects.html Wed Oct 31 20:37:41 2012
@@ -39,9 +39,11 @@
 
 <hr>
 <div id="content">
-       	<P>In this section we'll learn about persistent objects, how to customize them and how to create and save them in DB.</P>
+       <h2>Tutorial Persistent Objects</h2>
 
-<H3><A name="TutorialPersistentObjects-InspectingandCustomizingPersistentObjects"></A>Inspecting and Customizing Persistent Objects</H3>
+	<P>In this section we'll learn about persistent objects, how to customize them and how to create and save them in DB.</P>
+
+<H3>Inspecting and Customizing Persistent Objects</H3>
 
 <P>Persistent classes in Cayenne implement a <A href="dataobjects.html" title="DataObjects">DataObject interface</A>. If you inspect any of the classes <A href="tutorial-java-classes.html" title="Tutorial Java Classes">generated earlier</A> in this tutorial (e.g. <TT>org.example.cayenne.persistent.Artist</TT>), you'll see that it extends a class with the name that starts with underscore (<TT>org.example.cayenne.persistent.auto._Artist</TT>), which in turn extends from <TT>org.apache.cayenne.CayenneDataObject</TT>. Splitting each persistent class into user-customizable subclass (Xyz) and a generated superclass (_Xyz) is a useful technique to avoid overwriting the custom code when refreshing classes from the mapping model.</P>
 

Modified: websites/staging/cayenne/trunk/content/doc30/tutorial-selectquery.html
==============================================================================
--- websites/staging/cayenne/trunk/content/doc30/tutorial-selectquery.html (original)
+++ websites/staging/cayenne/trunk/content/doc30/tutorial-selectquery.html Wed Oct 31 20:37:41 2012
@@ -39,9 +39,11 @@
 
 <hr>
 <div id="content">
-       	<P>This section shows how to select objects from the database using SelectQuery. </P>
+       <h2>Tutorial SelectQuery</h2>
 
-<H3><A name="TutorialSelectQuery-IntroducingSelectQuery"></A>Introducing SelectQuery</H3>
+	<P>This section shows how to select objects from the database using SelectQuery. </P>
+
+<H3>Introducing SelectQuery</H3>
 
 <P>It was shown before how to <A href="tutorial-persistent-objects.html" title="Tutorial Persistent Objects">persist new objects</A>. Cayenne <A href="queries.html" title="Queries">queries</A> are used to access already saved objects. The primary query type used for selecting objects is <A href="selectquery.html" title="SelectQuery">SelectQuery</A>. It can be mapped in CayenneModeler or created via the API. We'll use the later approach in this section. We don't have too much data in the database yet, but we can still demonstrate the main principles below.</P>