Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornhauge2009-05-01 16:46:16 +0000
committernhauge2009-05-01 16:46:16 +0000
commit90f3473eab3ed00defabb45147d9b8f2c1dbeb9d (patch)
tree8d7f7268303fcfa830a027f05cccfbbc61cb32bf /jpa/plugins/org.eclipse.jpt.doc.user/task_additonal_tables.htm
parent97b0550847a242f73d11c3bcfeb8edec8939d9b8 (diff)
downloadwebtools.dali-90f3473eab3ed00defabb45147d9b8f2c1dbeb9d.tar.gz
webtools.dali-90f3473eab3ed00defabb45147d9b8f2c1dbeb9d.tar.xz
webtools.dali-90f3473eab3ed00defabb45147d9b8f2c1dbeb9d.zip
261107 - Update docs for 2.2 release.
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.doc.user/task_additonal_tables.htm')
-rw-r--r--jpa/plugins/org.eclipse.jpt.doc.user/task_additonal_tables.htm38
1 files changed, 26 insertions, 12 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/task_additonal_tables.htm b/jpa/plugins/org.eclipse.jpt.doc.user/task_additonal_tables.htm
index ba760f6083..2155ba27fe 100644
--- a/jpa/plugins/org.eclipse.jpt.doc.user/task_additonal_tables.htm
+++ b/jpa/plugins/org.eclipse.jpt.doc.user/task_additonal_tables.htm
@@ -2,36 +2,34 @@
"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 = July 23, 2008 8:59:45 -->
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
-<title>Specifying additional tables</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 (Mode = ohj/ohw) - Version 5.0" />
-<meta name="date" content="2005-07-10T12:57:20+08:00" />
+<title>Specifying additional tables</title>
+<meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1.1 Build 004" />
+<meta name="date" content="2009-05-01T8:12:45Z" />
<meta name="robots" content="noarchive" />
<meta name="doctitle" content="Specifying additional tables" />
-<meta name="relnum" content="Release 2.0" />
+<meta name="relnum" content="Release 2.2" />
<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" />
<link rel="stylesheet" href="dcommon/css/blafdoc.css" title="Oracle BLAFDoc" type="text/css" />
-<!-- start-->
<!-- contents -->
</head>
<body>
<p><a id="CIHGBIEI" name="CIHGBIEI"></a></p>
<div class="sect1"><!-- infolevel="all" infotype="General" -->
<h1>Specifying additional tables</h1>
-<p>Add a secondary table annotation to an entity if its data is split across more more than one table.</p>
+<p>Add a secondary table annotation to an entity if its data is split across more than one table.</p>
<p>To add a secondary table to the entity,</p>
-<ol start="1">
+<ol>
<li>
-<p>Select the entity in the <span class="gui-object-title">Package Explorer</span>.</p>
+<p>Select the entity in the <span class="gui-object-title">Project Explorer</span>.</p>
</li>
<li>
<p>In the <span class="gui-object-title">JPA Details</span> view, select the <span class="gui-object-action">Secondary Tables</span> information.</p>
-<div class="figure"><a id="sthref79" name="sthref79"></a>
+<div class="figure"><a id="sthref91" name="sthref91"></a>
<p class="titleinfigure">Specifying Secondary Tables</p>
<img src="img/secondary_tables.png" alt="Secondary Tables area on the JPA Details view." title="Secondary Tables area on the JPA Details view." /><br /></div>
<!-- class="figure" --></li>
@@ -44,9 +42,22 @@
</ol>
<p>Eclipse adds the following annotations the entity:</p>
<pre xml:space="preserve" class="oac_no_warn">
-@SecondaryTable(name="NAME", catalog = "CATALOG", schema = "SCHEMA"
+@SecondaryTable(name="NAME", catalog = "CATALOG", schema = "SCHEMA")
</pre>
+<p>To override the default primary key:</p>
+<ol>
+<li>
+<p>Enable the <span class="bold">Overwrite default</span> option, then click <span class="bold">Add</span> to specify a new primary key join column. The Create New Primary Key Join Column appears.</p>
+</li>
+<li>
+<p>Select the <span class="bold">Name</span>, <span class="bold">Referenced column name</span>, <span class="bold">Table</span>, and <span class="bold">Column definition</span> of the primary key for the entity.</p>
+<p>Eclipse adds the following annotations the entity:</p>
+<pre xml:space="preserve" class="oac_no_warn">
+@SecondaryTable(name="NAME", catalog = "CATALOG", schema = "SCHEMA", pkJoinColumns = {@PrimaryKeyJoinColumn(name="id", referencedColumnName = "id"),@PrimaryKeyJoinColumn(name="NAME", referencedColumnName = "REFERENCED COLUMN NAME", columnDefinition = "COLUMN DEFINITION")})
+
+</pre></li>
+</ol>
<br />
<p>&nbsp;</p>
<img src="img/ngrelt.png" alt="Related task" title="Related task" /><br />
@@ -60,8 +71,11 @@
<!-- Start Footer -->
<div class="footer">
<table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%">
+<col width="86%" />
+<col width="*" />
<tr>
-<td align="left" width="86%"><a href="dcommon/html/cpyr.htm"><span class="copyrightlogo">Copyright&nbsp;&copy;&nbsp;2006, 2008,&nbsp;Oracle.&nbsp;All&nbsp;rights&nbsp;reserved.</span></a></td>
+<td align="left"><span class="copyrightlogo">Copyright&nbsp;&copy;&nbsp;2006, 2009,&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>
</tr>
</table>
</div>

Back to the top