Skip to main content
diff options
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.doc.user/getting_started012.htm')
1 files changed, 60 insertions, 0 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/getting_started012.htm b/jpa/plugins/org.eclipse.jpt.doc.user/getting_started012.htm
new file mode 100644
index 0000000000..74ec6ba02b
--- /dev/null
+++ b/jpa/plugins/org.eclipse.jpt.doc.user/getting_started012.htm
@@ -0,0 +1,60 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "">
+<html xmlns="" xml:lang="en" lang="en">
+<!-- Run date = May 3, 2007 9:19:07 -->
+<meta name="OAC_IGNORE_SKIP_NAV" content="true" />
+<title>Associate the entity with a database table</title>
+<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" />
+<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="" />
+<meta name="doctitle" content="Associate the entity with a database table" />
+<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" />
+<p><a id="BABIHGGD" name="BABIHGGD"></a></p>
+<div class="sect3"><!-- 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>Associate the entity with a database table</h1>
+<p>Now you must associate each entity with its primary database table.</p>
+<ol type="1" start="1">
+<p>Select the <span class="gui-object-action">Employee</span> class in the Explorer view.</p>
+<p>In the JPA Details view, notice that Dali has automatically selected the EMPLOYEE table as the table name.</p>
+<div class="figure"><a id="sthref26" name="sthref26"></a>
+<p class="titleinfigure">JPA Details View for the Employee Entity</p>
+<img src="img/persistence_view_employee.png" alt="This figure shows the Persistence Properties view for the Employee entity." title="This figure shows the Persistence Properties view for the Employee entity." /><br /></div>
+<!-- class="figure" --></li>
+<p>By default, Dali attempts to associate each entity with a similarly named database table. Notice that although you have not explicitly associated the <span class="bold">Address</span> entity yet, there is no error in the Problems view because the entity name, Address, is identical to the table name (ADDRESS).</p>
+<p>For the <span class="bold">PhoneNumber</span> entity, however, there is an error. This is because the entity name (PhoneNumber) is different than the database table (PHONE). You must explicitly associate the entity with the PHONE table. Dali adds the <code>@Table(name="PHONE")</code> annotation to the entity.</p>
+<p>Now you are ready to <a href="getting_started013.htm#BABEBGBC">Create OR mappings</a>.</p>
+<!-- class="sect3" -->
+<!-- class="sect2" -->
+<!-- Start Footer -->
+<div class="footer">
+<table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%">
+<td align="left" width="86%"><a href="dcommon/html/cpyr.htm"><span class="copyrightlogo">Copyright&nbsp;&copy;&nbsp;2006, 2007,&nbsp;Oracle.&nbsp;All&nbsp;rights&nbsp;reserved.</span></a></td>
+<!-- class="footer" -->

Back to the top