cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r506232 - /cayenne/site/trunk/tlp-site/target/articles/082006/cayenne-gef/index.html
Date Mon, 12 Feb 2007 02:42:40 GMT
Author: aadamchik
Date: Sun Feb 11 18:42:39 2007
New Revision: 506232

URL: http://svn.apache.org/viewvc?view=rev&rev=506232
Log:
updating GEF article links

Modified:
    cayenne/site/trunk/tlp-site/target/articles/082006/cayenne-gef/index.html

Modified: cayenne/site/trunk/tlp-site/target/articles/082006/cayenne-gef/index.html
URL: http://svn.apache.org/viewvc/cayenne/site/trunk/tlp-site/target/articles/082006/cayenne-gef/index.html?view=diff&rev=506232&r1=506231&r2=506232
==============================================================================
--- cayenne/site/trunk/tlp-site/target/articles/082006/cayenne-gef/index.html (original)
+++ cayenne/site/trunk/tlp-site/target/articles/082006/cayenne-gef/index.html Sun Feb 11 18:42:39
2007
@@ -9,7 +9,7 @@
 <h1>Combining GEF and Cayenne</h1>
 <p><i>By Marcel Gordon, August 2006</i></p>
 <h2>1	ABSTRACT</h2>
-<p><a href="http://www.eclipse.org/gef">GEF</a> is a powerful <a href="http://www.eclipse.org">Eclipse</a>-based
framework for enabling visual interaction with models. <a href="http://incubator.apache.org/cayenne/index.html">Cayenne</a>
is an open-source project which provides object-relational mapping, translating from data
in a relational database to objects in Java. The two technologies combine fluidly to allow
visual editing of data from a database. This article gives a high level explanation of the
structure of an application which utilises GEF and demonstrates the use of Cayenne persistent
objects as a model for GEF through the development of a visual database editor.</p>
+<p><a href="http://www.eclipse.org/gef">GEF</a> is a powerful <a href="http://www.eclipse.org">Eclipse</a>-based
framework for enabling visual interaction with models. <a href="http://cayenne.apache.org/">Cayenne</a>
is an open-source project which provides object-relational mapping, translating from data
in a relational database to objects in Java. The two technologies combine fluidly to allow
visual editing of data from a database. This article gives a high level explanation of the
structure of an application which utilises GEF and demonstrates the use of Cayenne persistent
objects as a model for GEF through the development of a visual database editor.</p>
 <h2>2	INTRODUCTION</h2>
 <p>Graphical editing is one of the most intuitive and effective ways to allow users
to manipulate data. Diagrams convey a wealth of information in a simple fashion. Simple for
the user, in any event; creating such applications can be a time-consuming process for the
developer. Enter GEF, the Eclipse project's Graphical Editing Framework. GEF allows the rapid
development of visual editors by providing a framework for display and interaction, leaving
the developer free to focus on the user experience.</p>
 <p>GEF utilises the well-known Model-View-Controller pattern. Usually the application's
model will comprise of simple Java objects, but more sophisticated applications can take advantage
of the <a href="http://www.eclipse.org/emf/">Eclipse Modeling Framework (EMF)</a>.
However, for many applications the data which underlies the model resides in a database. Translating
from the relational structure to Java objects can be burdensome and conceptually difficult.</p>
@@ -19,7 +19,7 @@
 <p>This article explains the design of a simple database editing tool. The editor allows
users to run a query and display the results, expand relationships between tables, insert
and delete records, alter relationships between records and edit the value of fields.</p>
 <img src="images/ropbrowser.jpg" alt="Database Editor in action" />
 <h3>3.1	Running the editor</h3>
-<p>The source code for the editor can be <a href="https://svn.apache.org/repos/asf/incubator/cayenne/soc/trunk/cayenne-rop">checked
out of the repository</a>. The application consists of two Eclipse projects. The client
is an Eclipse plugin and the server is a web application. The following are required in order
to run the editor:
+<p>The source code for the editor can be <a href="https://svn.apache.org/repos/asf/cayenne/soc/trunk/cayenne-rop/">checked
out of the repository</a>. The application consists of two Eclipse projects. The client
is an Eclipse plugin and the server is a web application. The following are required in order
to run the editor:
 <ul><li><a href="http://www.eclipse.org/downloads/">Eclipse 3.2 or later</a></li>
 <li><a href="http://download.eclipse.org/tools/gef/downloads/index.php">GEF 3.2
or later</a></li></ul>
 </p>
@@ -37,7 +37,7 @@
 <tr><td style="border: solid 1px black;">Field</td><td style="border:
solid 1px black;">Attribute</td></tr>
 <tr><td style="border: solid 1px black;">Foreign key constraint</td><td
style="border: solid 1px black;">Relationship</td></tr>
 </table></p>
-<p>Cayenne provides a GUI tool known as the <a href="http://cwiki.apache.org/CAYDOC/modeler-guide.html">Modeler</a>
in order to facilitate the mapping of a database. If the database already exists, the Modeler
can generate the mapping automatically. Alternatively, the Modeler can be used to design and
create a database and the associated mapping. Either way, upon completion of the mapping process
Cayenne has the metadata which it needs. This is used to generate Java classes for use in
the application, and the developer never need deal with the database directly again.</p>
+<p>Cayenne provides a GUI tool known as the <a href="http://cayenne.apache.org/doc/modeler-guide.html">Modeler</a>
in order to facilitate the mapping of a database. If the database already exists, the Modeler
can generate the mapping automatically. Alternatively, the Modeler can be used to design and
create a database and the associated mapping. Either way, upon completion of the mapping process
Cayenne has the metadata which it needs. This is used to generate Java classes for use in
the application, and the developer never need deal with the database directly again.</p>
 <p>Cayenne stores its mapping metadata in XML files. The database editor includes metadata
files for a simple database involving three entities - Artist, Painting, and Gallery - commonly
used in the Cayenne documentation. As we will see below, you can use the database editor with
a different database simply by replacing these files with your own.</p>
 <img src="images/entity.gif" align="left" alt="Entity type hierarchy" />
 <h4>3.2.1	Cayenne's persistent classes</h4>
@@ -561,7 +561,7 @@
 <br /><a name="fn1" href="#bn1">[1]</a> Randy Hudson, 'Create an Eclipse-based
application using the Graphical Editing Framework' at <a href="http://www-128.ibm.com/developerworks/opensource/library/os-gef/">http://www-128.ibm.com/developerworks/opensource/library/os-gef/</a>;
Bo Majewski, 'A Shape Diagram Editor' at <a href="http://www.eclipse.org/articles/Article-GEF-diagram-editor/shape.html">http://www.eclipse.org/articles/Article-GEF-diagram-editor/shape.html</a>;
Phil Zoio, 'Building a Database Schema Diagram Editor with GEF' at <a href="http://www.eclipse.org/articles/Article-GEF-editor/gef-schema-editor.html">http://www.eclipse.org/articles/Article-GEF-editor/gef-schema-editor.html</a>;
IBM, 'Eclipse Development using the Graphical Editing Framework and the Eclipse Modeling Framework'
at <a href="http://www.redbooks.ibm.com/Redbooks.nsf/RedbookAbstracts/sg246302.html">http://www.redbooks.ibm.com/Redbooks.nsf/RedbookAbstracts/sg246302.html</a>
 <br /><a name="fn2" href="#bn2">[2]</a> Randy Hudson's article (above n
1) introduces this idea with the terms 'business' and 'view'. I use 'visual' rather than 'view'
in order to avoid confusion with the use of the term 'view' in MVC.
 <br /><a name="fn3" href="#bn3">[3]</a> Daniel Lee, 'Display a UML Diagram
using Draw2D' at <a href="http://www.eclipse.org/articles/Article-GEF-Draw2d/GEF-Draw2d.html">http://www.eclipse.org/articles/Article-GEF-Draw2d/GEF-Draw2d.html</a>.
-<br /><a name="fn4" href="#bn4">[4]</a> See <a href="http://cwiki.apache.org/confluence/display/CAY/Cocoa+Cayenne">http://cwiki.apache.org/confluence/display/CAY/Cocoa+Cayenne</a>.
+<br /><a name="fn4" href="#bn4">[4]</a> See <a href="http://cwiki.apache.org/CAY/cocoa-cayenne.html">http://cwiki.apache.org/CAY/cocoa-cayenne.html</a>.
 </p>
 </body>
 </html>



Mime
View raw message