Skip to main content
diff options
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.doc.user/tasks023.htm')
1 files changed, 69 insertions, 27 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/tasks023.htm b/jpa/plugins/org.eclipse.jpt.doc.user/tasks023.htm
index a1870e4d58..cdf3c85df7 100644
--- a/jpa/plugins/org.eclipse.jpt.doc.user/tasks023.htm
+++ b/jpa/plugins/org.eclipse.jpt.doc.user/tasks023.htm
@@ -3,52 +3,94 @@
<html xmlns="" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
-<title>Validating mappings and reporting problems</title>
-<meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1.1" />
-<meta name="date" content="2010-05-19T8:12:45Z" />
+<title>Generating dynamic entities from tables</title>
+<meta name="copyright" content="Copyright (c) 2000, 2009 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 Contributors: Oracle - initial API and implementation" />
+<meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 1.0.11" />
+<meta name="date" content="2012-09-11T7:44:6Z" />
<meta name="robots" content="noarchive" />
-<meta name="doctitle" content="Validating mappings and reporting problems" />
-<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 Contributors: Oracle - initial API and implementation" />
+<meta name="doctitle" content="Generating dynamic entities from tables" />
+<meta name="relnum" content="Release 3.2" />
+<meta name="partnum" content="Release 3.2" />
<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" />
-<!-- contents -->
-<p><a id="BABFAIBA" name="BABFAIBA"></a></p>
-<div class="sect1">
-<h1>Validating mappings and reporting problems</h1>
-<p><a id="sthref167" name="sthref167"></a><a id="sthref168" name="sthref168"></a><a id="sthref169" name="sthref169"></a><a id="sthref170" name="sthref170"></a>Errors and warnings on persistent entities and mappings are indicated with a red error or yellow warning next to the resource with the error, as well as the parent containers up to the project.</p>
-<div class="figure"><a id="sthref171" name="sthref171"></a>
-<p class="titleinfigure">Sample Errors and Warnings</p>
-<img src="img/error_sample.png" alt="This figure shows sample error and warning icons in the Explorer view." title="This figure shows sample error and warning icons in the Explorer view." /><br /></div>
-<!-- class="figure" -->
-<p>This section contains information on the following:</p>
+<p class="betadraftsubtitle">Beta Draft: 2012-09-11</p>
+<p><a id="CIHHFGIG" name="CIHHFGIG"></a></p>
+<div class="sect1"><!-- infolevel="all" infotype="General" -->
+<h1>Generating dynamic entities from tables</h1>
+<p>When using EclipseLink JPA, you can create dynamic entities from your database tables. This dynamic persistence provides access to a relational database with all the benefits of JPA <span class="italic">without coding</span> or maintaining Java classes.</p>
+<p>Dali dynamically creates the classes at runtime, as needed.</p>
+<p>To generate dynamic entities:</p>
-<p><a href="tasks024.htm#CIHFEDEI">Error messages</a></p>
+<p>Right-click the JPA project in the <span class="gui-object-title">Project Explorer</span> and select <span class="gui-object-action">JPA Tools &gt; Generate Dynamic Entities from Tables</span>.</p>
+<img src="img/generate_dynamic_entities.png" alt="JPA Tools &gt; Generate Dynamic Entities from Tables" title="JPA Tools &gt; Generate Dynamic Entities from Tables" /><br />
+<p>The Select Tables page of the <a href="reference002.htm#CACGDFDJ">Generate Dynamic Entities from Tables wizard</a> appears.</p>
+<div class="figure"><a id="sthref253" name="sthref253"></a>
+<p class="titleinfigure">Select Tables</p>
+<img src="img/select_tables_dynamic.png" alt="" title="" /><br /></div>
+<!-- class="figure" --></li>
+<p>On the <a href="reference003.htm#CACFGHJF">Select Tables</a> page, select the tables from which to generate the entities and click <span class="bold">Next</span>.</p>
+<p>The <a href="reference004.htm#CACBDJAC">Table Associations</a> page appears.</p>
+<div class="figure"><a id="sthref254" name="sthref254"></a>
+<p class="titleinfigure">Table Associations</p>
+<img src="img/table_associations_dynamic.png" alt="" title="" /><br /></div>
+<!-- class="figure" --></li>
+<p>On the <a href="reference004.htm#CACBDJAC">Table Associations</a> page, specify which table associations should be generated. Use the <a href="ref_create_new_association_wizard.htm#CIAFGHIF">Create New Association wizard</a> to create additional relationships.</p>
+<p>Click <span class="bold">Next</span>. The <a href="reference005.htm#CACHHEEH">Customize Default Entity Generation</a> page appears.</p>
+<div class="figure"><a id="sthref255" name="sthref255"></a>
+<p class="titleinfigure">Customize Defaults</p>
+<img src="img/customize_default_entity_generation_dynamic.png" alt="" title="" /><br /></div>
+<!-- class="figure" --></li>
+<p>On the <a href="reference005.htm#CACHHEEH">Customize Default Entity Generation</a> page, specify the default information to use when generating the entities, and click <span class="bold">Next</span>.</p>
+<p>The <a href="reference006.htm#CACDGDIC">Customize Individual Entities</a> page appears.</p>
+<div class="figure"><a id="sthref256" name="sthref256"></a>
+<p class="titleinfigure">Customize Individual Entities</p>
+<img src="img/customize_individual_entities_dynamic.png" alt="" title="" /><br /></div>
+<!-- class="figure" --></li>
+<p>Use the <a href="reference006.htm#CACDGDIC">Customize Individual Entities</a> page to customize specific generated entities.</p>
-<p><a href="tasks025.htm#CIHGEAIJ">Warning messages</a></p>
+<p>Click <span class="bold">Finish</span> to complete the wizard and generate the entities.</p>
-<img src="img/ngrelc.png" alt="Related concept" title="Related concept" /><br />
-<p><a href="../org.eclipse.platform.doc.user/concepts/cprbview.htm">Problems view</a></p>
+<p>Dali generates the dynamic entities, using the <code>VIRTUAL</code> access type, as shown in <a href="#CIHIDHAB">Example: Sample eclipselink-orm.xml File with Dynamic Entities</a>.</p>
+<div class="example"><a id="CIHIDHAB" name="CIHIDHAB"></a>
+<p class="titleinexample">Sample eclipselink-orm.xml File with Dynamic Entities</p>
+<pre xml:space="preserve" class="oac_no_warn">
+&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+&lt;entity-mappings version="2.4" xmlns="" xmlns:xsi="" xsi:schemaLocation=""&gt;
+ &lt;entity class="quickstart.demo.model.Inventory" <span class="bold">access="VIRTUAL"</span>&gt;
+ &lt;attributes&gt;
+ &lt;id name="itemSku" attribute-type="long"&gt;
+ &lt;/id&gt;
+ &lt;/attributes&gt;
+ &lt;/entity&gt;
+ &lt;entity ..."&gt;
+ &lt;/entity&gt;
+<!-- class="example" --></div>
+<!-- class="sect1" -->
<!-- Start Footer -->
<div class="footer">
<table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%">
<col width="86%" />
<col width="*" />
-<td align="left"><span class="copyrightlogo">Copyright&nbsp;&copy;&nbsp;2006, 2010,&nbsp;Oracle&nbsp;and/or&nbsp;its&nbsp;affiliates.&nbsp;All&nbsp;rights&nbsp;reserved.</span><br />
+<td align="left"><span class="copyrightlogo">Copyright&nbsp;&copy;&nbsp;2011, 2012,&nbsp;Oracle&nbsp;and/or&nbsp;its&nbsp;affiliates.&nbsp;All&nbsp;rights&nbsp;reserved.</span><br />
<a href="dcommon/html/cpyr.htm"><span class="copyrightlogo">Legal Notices</span></a></td>
-<!-- class="footer" --></div>
+<!-- class="footer" -->
+</html> \ No newline at end of file

Back to the top