diff options
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.doc.user/tasks004.htm')
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.doc.user/tasks004.htm | 52 |
1 files changed, 22 insertions, 30 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/tasks004.htm b/jpa/plugins/org.eclipse.jpt.doc.user/tasks004.htm index 1dbf6bc3b7..90441ad325 100644 --- a/jpa/plugins/org.eclipse.jpt.doc.user/tasks004.htm +++ b/jpa/plugins/org.eclipse.jpt.doc.user/tasks004.htm @@ -6,11 +6,11 @@ <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> -<title>Working with orm.xml file</title> -<meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1.1 Build 004" /> -<meta name="date" content="2010-01-22T9:29:44Z" /> +<title>Creating an orm.xml file</title> +<meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1.1" /> +<meta name="date" content="2010-05-19T8:12:42Z" /> <meta name="robots" content="noarchive" /> -<meta name="doctitle" content="Working with orm.xml file" /> +<meta name="doctitle" content="Creating an orm.xml file" /> <meta name="relnum" content="Release 2.3" /> <meta name="copyright" content="Copyright (c) 2000, 2008 oracle . All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. Contributors: Oracle - initial API and implementation" /> <link rel="copyright" href="dcommon/html/cpyr.htm" title="Copyright" type="text/html" /> @@ -18,38 +18,30 @@ <!-- contents --> </head> <body> -<p><a id="CIHBCDCE" name="CIHBCDCE"></a></p> -<div class="sect2"><!-- infolevel="all" infotype="General" --> -<h1>Working with orm.xml file</h1> -<p><a id="sthref62" name="sthref62"></a><a id="sthref63" name="sthref63"></a>You can work with the <code>orm.xml</code> by using the JPA Details view.</p> -<p>Use this procedure to work with the <code>orm.xml</code> file:</p> +<div class="sect2"><!-- infolevel="all" infotype="General" --><a id="sthref60" name="sthref60"></a> +<h1>Creating an orm.xml file</h1> +<p><a id="sthref61" name="sthref61"></a>If you opt not to create an <code>orm.xml</code> file when you create a JPA project, you can create one using the <a href="reference002.htm#CIAIJCCE">Mapping File Wizard</a>.</p> +<p>Use this procedure to create an <code>orm.xml</code> file:</p> <ol> <li> -<p>Right-click the <code>orm.xml</code> file in the <span class="gui-object-title">Project Explorer</span> and select <span class="gui-object-action">Open</span>.</p> -</li> -<li> -<p>In the JPA Structure view, select <span class="bold">EntityMappings</span>.</p> -</li> +<p>From the Navigator or Project Explorer, select <span class="bold">File > New > Other</span>. The Select a Wizard dialog appears.</p> +<div class="figure"><a id="sthref62" name="sthref62"></a> +<p class="titleinfigure">The Select a Wizard Dialog</p> +<img src="img/select_a_wizard_mapping.png" alt="The Select a Wizard dialog with Mapping file selected." title="The Select a Wizard dialog with Mapping file selected." /><br /></div> +<!-- class="figure" --></li> <li> -<p>Use the JPA Details view to configure the entity mapping and persistence unit defaults.</p> -<div class="figure"><a id="sthref64" name="sthref64"></a> -<p class="titleinfigure">JPA Details view for EntityMappings (orm.xml)</p> -<img src="img/details_entitymappings.png" alt="JPA Details view for orm.xml file." title="JPA Details view for orm.xml file." /><br /></div> +<p>Select <span class="bold">Mapping File</span> and then click <span class="bold">Next</span>. The Mapping File page appears.</p> +<p>If you are using EclipseLink, you can select <span class="bold">EclipseLink > EclipseLink Mapping File</span>.</p> +<div class="figure"><a id="sthref63" name="sthref63"></a> +<p class="titleinfigure">The Mapping File Page</p> +<img src="img/mapping_file_new.png" alt="The Mapping File page." title="The Mapping File page." /><br /></div> <!-- class="figure" --></li> +<li> +<p>Define the properties in the page and click <span class="bold">Finish</span>. The <code>orm.xml</code> file appears in the src directory of the selected JPA project. You can manage the orm.xml file using the JPA Details view or through the XML Editor. See also <a href="ref_details_orm.htm#CACGDGHC">JPA Details view (for orm.xml)</a>.</p> +</li> </ol> -<img src="img/ngrelr.png" alt="Related task" title="Related task" /><br /> -<br /> -<a href="ref_details_orm.htm#CACGDGHC">JPA Details view (for orm.xml)</a><br /> -<img src="img/ngrelt.png" alt="Related task" title="Related task" /><br /> -<br /> -<a href="#CIHBCDCE">Working with orm.xml file</a><br /> -<a href="../org.eclipse.wst.xmleditor.doc.user/topics/cworkXML.html">Working with XML Files</a><br /> -<p> </p> -<img src="img/ngrelc.png" alt="Related concept" title="Related concept" /><br /> -<br /> -<a href="concepts003.htm#CHDBIJAC">The orm.xml file</a><br /></div> +</div> <!-- class="sect2" --> -<!-- class="sect1" --> <!-- Start Footer --> <div class="footer"> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> |