cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Cayenne Documentation > Tutorial
Date Sun, 14 Nov 2010 05:18:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/1/_/styles/combined.css?spaceKey=CAYDOC&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/CAYDOC/Tutorial">Tutorial</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~andrus">Andrus
Adamchik</a>
    </h4>
        <br/>
                         <h4>Changes (2)</h4>
                                 
    
<div id="page-diffs">
            <table class="diff" cellpadding="0" cellspacing="0">
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">{note}There&#39;s
no Cayenne 3.1 tutorial yet, as 3.1 is still under active development. You may want to check
[a tutorial for Cayenne 3.0|CAYDOC30:Tutorial] instead.{note} <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">h2.
Tutorial <br> <br>This is a step-by-step tutorial showing how to write a database
application with Cayenne. When you are done with it, you should have an understanding of the
basics of object-relational mapping using CayenneModeler and how to use the Cayenne framework
in standalone (command-line or otherwise) and web applications. The tutorial uses Maven, Eclipse
IDE and Derby database, however it can be easily recreated with another combination of a database,
an IDE and a build system. Full tutorial source code in a form of Eclipse project is distributed
with Cayenne (see {{&quot;tutorials/tutorial&quot;}} folder). <br> <br>{note:title=Note
about Maven}The only potentially controversial choice here is Maven. Not everybody is familiar
with Maven, and not everybody likes it. However we decided that the benefits of the setup
simplicity outweigh any downsides. Note that the tutorial is using {{m2eclipse}} plugin and
doesn&#39;t even require a command-line Maven installation. Moreover most of the useful
Cayenne Maven hackery is presented in boxed inserts throughout the text, while a Maven-agnostic
alternative is shown in the main text.{note} <br> <br>h3. Sections <br>{excerpt}
<br># [Setting up the environment...|Tutorial Setup] <br># Learning mapping basics
<br>## [Starting a project...|Tutorial Starting Project] <br>## [Getting started
with Object Relational Mapping (ORM)...|Tutorial Object Relational Mapping] <br>## [Creating
Java classes...|Tutorial Java Classes] <br># Learning Cayenne API <br>## [Getting
started with ObjectContext...|Tutorial ObjectContext] <br>## [Getting started with persistent
objects...|Tutorial Persistent Objects] <br>## [Selecting objects...|Tutorial SelectQuery]
<br>## [Deleting objects...|Tutorial Delete] <br># [Converting to web application...|Tutorial
Webapp] <br>{excerpt} <br></td></tr>
        </table>
</div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h2><a name="Tutorial-Tutorial"></a>Tutorial</h2>

<p>This is a step-by-step tutorial showing how to write a database application with
Cayenne. When you are done with it, you should have an understanding of the basics of object-relational
mapping using CayenneModeler and how to use the Cayenne framework in standalone (command-line
or otherwise) and web applications. The tutorial uses Maven, Eclipse IDE and Derby database,
however it can be easily recreated with another combination of a database, an IDE and a build
system. Full tutorial source code in a form of Eclipse project is distributed with Cayenne
(see <tt>"tutorials/tutorial"</tt> folder).</p>

<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td
valign='top'><img src="/confluence/images/icons/emoticons/warning.gif" width="16" height="16"
align="absmiddle" alt="" border="0"></td><td><b>Note about Maven</b><br
/>The only potentially controversial choice here is Maven. Not everybody is familiar with
Maven, and not everybody likes it. However we decided that the benefits of the setup simplicity
outweigh any downsides. Note that the tutorial is using <tt>m2eclipse</tt> plugin
and doesn't even require a command-line Maven installation. Moreover most of the useful Cayenne
Maven hackery is presented in boxed inserts throughout the text, while a Maven-agnostic alternative
is shown in the main text.</td></tr></table></div>

<h3><a name="Tutorial-Sections"></a>Sections</h3>

<ol>
	<li><a href="/confluence/pages/createpage.action?spaceKey=CAYDOC&amp;title=Tutorial+Setup&amp;linkCreation=true&amp;fromPageId=10576"
class="createlink">Setting up the environment...</a></li>
	<li>Learning mapping basics
	<ol>
		<li><a href="/confluence/pages/createpage.action?spaceKey=CAYDOC&amp;title=Tutorial+Starting+Project&amp;linkCreation=true&amp;fromPageId=10576"
class="createlink">Starting a project...</a></li>
		<li><a href="/confluence/pages/createpage.action?spaceKey=CAYDOC&amp;title=Tutorial+Object+Relational+Mapping&amp;linkCreation=true&amp;fromPageId=10576"
class="createlink">Getting started with Object Relational Mapping (ORM)...</a></li>
		<li><a href="/confluence/pages/createpage.action?spaceKey=CAYDOC&amp;title=Tutorial+Java+Classes&amp;linkCreation=true&amp;fromPageId=10576"
class="createlink">Creating Java classes...</a></li>
	</ol>
	</li>
	<li>Learning Cayenne API
	<ol>
		<li><a href="/confluence/pages/createpage.action?spaceKey=CAYDOC&amp;title=Tutorial+ObjectContext&amp;linkCreation=true&amp;fromPageId=10576"
class="createlink">Getting started with ObjectContext...</a></li>
		<li><a href="/confluence/pages/createpage.action?spaceKey=CAYDOC&amp;title=Tutorial+Persistent+Objects&amp;linkCreation=true&amp;fromPageId=10576"
class="createlink">Getting started with persistent objects...</a></li>
		<li><a href="/confluence/pages/createpage.action?spaceKey=CAYDOC&amp;title=Tutorial+SelectQuery&amp;linkCreation=true&amp;fromPageId=10576"
class="createlink">Selecting objects...</a></li>
		<li><a href="/confluence/pages/createpage.action?spaceKey=CAYDOC&amp;title=Tutorial+Delete&amp;linkCreation=true&amp;fromPageId=10576"
class="createlink">Deleting objects...</a></li>
	</ol>
	</li>
	<li><a href="/confluence/pages/createpage.action?spaceKey=CAYDOC&amp;title=Tutorial+Webapp&amp;linkCreation=true&amp;fromPageId=10576"
class="createlink">Converting to web application...</a></li>
</ol>

    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/CAYDOC/Tutorial">View Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=10576&revisedVersion=23&originalVersion=22">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/CAYDOC/Tutorial?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message