| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| <head> |
| <!-- Run date = May 21, 2007 6:35:52 --> |
| <meta name="OAC_IGNORE_SKIP_NAV" content="true" /> |
| <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> |
| <title>Creating a new project</title> |
| <meta http-equiv="Content-Style-Type" content="text/css" /> |
| <meta http-equiv="Content-Script-Type" content="text/javascript" /> |
| <meta name="generator" content="Oracle DARB XHTML Converter - Version 4.5.3 Build 02" /> |
| <meta name="date" content="2005-07-10T12:57:20+08:00" /> |
| <meta name="robots" content="all" scheme="http://www.robotstxt.org/" /> |
| <meta name="doctitle" content="Creating a new project" /> |
| <meta name="relnum" content="Release 1.0.0" /> |
| <meta name="partnum" content="" /> |
| <link rel="copyright" href="dcommon/html/cpyr.htm" title="Copyright" type="text/html" /> |
| <link rel="stylesheet" href="dcommon/css/blafdoc.css" title="Oracle BLAFDoc" type="text/css" /> |
| <link rel="start" href="../../index.htm" title="Home" type="text/html" /> |
| <link rel="contents" href="toc.htm" title="Contents" type="text/html" /> |
| </head> |
| <body> |
| <p><a id="BABDFHDA" name="BABDFHDA"></a></p> |
| <div class="sect2"><!-- infolevel="all" infotype="General" --> |
| <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> |
| <tr valign="bottom"> |
| <td align="left" width="86%"> |
| <h1>Creating a new project</h1> |
| </td> |
| </tr> |
| </table> |
| <p><a id="sthref6" name="sthref6"></a>This quick start shows how to create a new JPA project.</p> |
| <ol type="1" start="1"> |
| <li> |
| <p>Select <span class="gui-object-action">File > New > Project</span>. The New Project dialog appears.</p> |
| </li> |
| <li> |
| <p>On the <span class="gui-object-title">New Project</span> dialog, select <span class="gui-object-action">JPA > JPA Project</span> and click <span class="gui-object-action">Next</span>. The Create a Java Project dialog appears.</p> |
| <div class="figure"><a id="sthref7" name="sthref7"></a> |
| <p class="titleinfigure">New JPA Project</p> |
| <img src="img/new_jpa_project_dialog.png" alt="New JPA Project dialog." title="New JPA Project dialog." /><br /></div> |
| <!-- class="figure" --></li> |
| <li> |
| <p>On the <span class="gui-object-title">Create a JPA Project</span> dialog, enter a <span class="gui-object-action">Project name</span> (such as <code>QuickStart</code>).</p> |
| </li> |
| <li> |
| <p>Select your <span class="bold">Target Runtime</span> (such as <code>Apache Tomcat</code>) and click <span class="bold">Next</span>. The Project Facets dialog appears.</p> |
| </li> |
| <li> |
| <p>Verify that the <span class="bold">Java Persistence 1.0</span> facet is selected and click <span class="bold">Next</span>. The JPA Facet dialog appears.</p> |
| <div align="center"> |
| <div class="inftblnote"><br /> |
| <table class="Note oac_no_warn" summary="This is a layout table to format a note" title="This is a layout table to format a note" dir="ltr" border="1" width="80%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0"> |
| <tbody> |
| <tr> |
| <td align="left"> |
| <p class="notep1">Note:</p> |
| You must configure your project to use Java version 5.0 (or higher). See <a href="getting_started001.htm#BABEFHCD">"Requirements and installation"</a> for more information.</td> |
| </tr> |
| </tbody> |
| </table> |
| <br /></div> |
| <!-- class="inftblnote" --></div> |
| </li> |
| <li> |
| <p>On the JPA Facet dialog, select your vendor-specific JPA platform, database connection (or create a new connection), JPA implementation library (such as TopLink Essentials), define how Dali should manage persistent classes, and click <span class="bold">Finish</span>.</p> |
| <div class="figure"><a id="sthref8" name="sthref8"></a> |
| <p class="titleinfigure">JPA Facet Dialog</p> |
| <img src="img/jpa_facet_dialog.png" alt="JPA Facet dialog." title="JPA Facet dialog." /><br /></div> |
| <!-- class="figure" --></li> |
| </ol> |
| <p>Eclipse adds the project to the workbench and opens the JPA perspective.</p> |
| <div class="figure"><a id="sthref9" name="sthref9"></a> |
| <p class="titleinfigure">Project in Package Explorer</p> |
| <img src="img/quickstart_project.png" alt="Package Explorer showing the JPA project." title="Package Explorer showing the JPA project." /><br /></div> |
| <!-- class="figure" --> |
| <p>Now that you have created a project with persistence, you can continue with <a href="getting_started004.htm#BABFGDDG">Creating a Java persistent entity</a>.</p> |
| </div> |
| <!-- class="sect2" --> |
| <!-- Start Footer --> |
| <div class="footer"> |
| <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> |
| <tr> |
| <td align="left" width="86%"><a href="dcommon/html/cpyr.htm"><span class="copyrightlogo">Copyright © 2006, 2007, Oracle. All rights reserved.</span></a></td> |
| </tr> |
| </table> |
| </div> |
| <!-- class="footer" --> |
| </body> |
| </html> |