Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.doc.user/reference025.htm')
-rw-r--r--jpa/plugins/org.eclipse.jpt.doc.user/reference025.htm222
1 files changed, 202 insertions, 20 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.doc.user/reference025.htm b/jpa/plugins/org.eclipse.jpt.doc.user/reference025.htm
index 47b984b01f..7aaa05d8d0 100644
--- a/jpa/plugins/org.eclipse.jpt.doc.user/reference025.htm
+++ b/jpa/plugins/org.eclipse.jpt.doc.user/reference025.htm
@@ -3,44 +3,226 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<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>Source</title>
-<meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1.1" />
-<meta name="date" content="2010-05-19T8:12:48Z" />
+<title>Basic Mapping</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 http://www.eclipse.org/legal/epl-v10.html. 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:7Z" />
<meta name="robots" content="noarchive" />
-<meta name="doctitle" content="Source" />
-<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" />
+<meta name="doctitle" content="Basic Mapping" />
+<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 -->
</head>
<body>
-<p><a id="CIAHCJAH" name="CIAHCJAH"></a></p>
+<p class="betadraftsubtitle">Beta Draft: 2012-09-11</p>
+<p><a id="CACCGGCG" name="CACCGGCG"></a></p>
<div class="sect3"><!-- infolevel="all" infotype="General" -->
-<h1>Source</h1>
-<p>Using this page, you can manually edit the <code>persistence.xml</code> file.</p>
-<p>See <a href="task_manage_persistence.htm#CIHDAJID">"Managing the persistence.xml file"</a> for additional information.</p>
-<p>&nbsp;</p>
-<img src="img/ngrelt.png" alt="Related task" title="Related task" /><br />
-<br />
-<a href="task_manage_persistence.htm#CIHDAJID">Managing the persistence.xml file</a></div>
+<h1>Basic Mapping</h1>
+<div class="inftblhruleinformal">
+<table class="HRuleInformal" summary="JPA Details view, Version page" dir="ltr" border="1" width="100%" frame="hsides" rules="rows" cellpadding="3" cellspacing="0">
+<col width="22%" />
+<col width="*" />
+<col width="31%" />
+<thead>
+<tr align="left" valign="top">
+<th align="left" valign="bottom" id="r1c1-t31">Property</th>
+<th align="left" valign="bottom" id="r1c2-t31">Description</th>
+<th align="left" valign="bottom" id="r1c3-t31">Default</th>
+</tr>
+</thead>
+<tbody>
+<tr align="left" valign="top">
+<td align="left" id="r2c1-t31" headers="r1c1-t31">
+<p><span class="bold">Column</span></p>
+</td>
+<td align="left" headers="r2c1-t31 r1c2-t31">
+<p><a id="sthref407" name="sthref407"></a><a id="sthref408" name="sthref408"></a>The database column that contains the value for the attribute. This field corresponds to the <code>@Column</code> annotation.</p>
+</td>
+<td align="left" headers="r2c1-t31 r1c3-t31">
+<p>By default, the Column is assumed to be named identically to the attribute and always included in the <code>INSERT</code> and <code>UPDATE</code> statements.</p>
+</td>
+</tr>
+<tr align="left" valign="top">
+<td align="left" id="r3c1-t31" headers="r1c1-t31">
+<p>Name</p>
+</td>
+<td align="left" headers="r3c1-t31 r1c2-t31">
+<p>The database column that contains the value for the attribute.</p>
+</td>
+<td align="left" headers="r3c1-t31 r1c3-t31"><br /></td>
+</tr>
+<tr align="left" valign="top">
+<td align="left" id="r4c1-t31" headers="r1c1-t31">
+<p>Table</p>
+</td>
+<td align="left" headers="r4c1-t31 r1c2-t31">
+<p>Name of the database table that contains the selected column.</p>
+</td>
+<td align="left" headers="r4c1-t31 r1c3-t31"><br /></td>
+</tr>
+<tr align="left" valign="top">
+<td align="left" id="r5c1-t31" headers="r1c1-t31">
+<p><span class="bold">Details</span></p>
+</td>
+<td align="left" headers="r5c1-t31 r1c2-t31"><br /></td>
+<td align="left" headers="r5c1-t31 r1c3-t31"><br /></td>
+</tr>
+<tr align="left" valign="top">
+<td align="left" id="r6c1-t31" headers="r1c1-t31">
+<p>Insertable</p>
+</td>
+<td align="left" headers="r6c1-t31 r1c2-t31">
+<p>Specifies if the column is always included in <code>SQL INSERT</code> statements.</p>
+</td>
+<td align="left" headers="r6c1-t31 r1c3-t31">
+<p>True</p>
+</td>
+</tr>
+<tr align="left" valign="top">
+<td align="left" id="r7c1-t31" headers="r1c1-t31">
+<p>Updatable</p>
+</td>
+<td align="left" headers="r7c1-t31 r1c2-t31">
+<p>Specifies if this column is always included in <code>SQL UPDATE</code> statements.</p>
+</td>
+<td align="left" headers="r7c1-t31 r1c3-t31">
+<p>True</p>
+</td>
+</tr>
+<tr align="left" valign="top">
+<td align="left" id="r8c1-t31" headers="r1c1-t31">
+<p>Unique</p>
+</td>
+<td align="left" headers="r8c1-t31 r1c2-t31">
+<p>Sets the <code>UNIQUE</code> constraint for the column.</p>
+</td>
+<td align="left" headers="r8c1-t31 r1c3-t31">
+<p>False</p>
+</td>
+</tr>
+<tr align="left" valign="top">
+<td align="left" id="r9c1-t31" headers="r1c1-t31">
+<p>Nullable</p>
+</td>
+<td align="left" headers="r9c1-t31 r1c2-t31">
+<p>Specifies if the column allows null values.</p>
+</td>
+<td align="left" headers="r9c1-t31 r1c3-t31">
+<p>True</p>
+</td>
+</tr>
+<tr align="left" valign="top">
+<td align="left" id="r10c1-t31" headers="r1c1-t31">
+<p>Length</p>
+</td>
+<td align="left" headers="r10c1-t31 r1c2-t31">
+<p>Sets the column length.</p>
+</td>
+<td align="left" headers="r10c1-t31 r1c3-t31">
+<p>255</p>
+</td>
+</tr>
+<tr align="left" valign="top">
+<td align="left" id="r11c1-t31" headers="r1c1-t31">
+<p>Precision</p>
+</td>
+<td align="left" headers="r11c1-t31 r1c2-t31">
+<p>Sets the precision for the column values.</p>
+</td>
+<td align="left" headers="r11c1-t31 r1c3-t31">
+<p>0</p>
+</td>
+</tr>
+<tr align="left" valign="top">
+<td align="left" id="r12c1-t31" headers="r1c1-t31">
+<p>Scale</p>
+</td>
+<td align="left" headers="r12c1-t31 r1c2-t31">
+<p>Sets the number of digits that appear to the right of the decimal point.</p>
+</td>
+<td align="left" headers="r12c1-t31 r1c3-t31">
+<p>0</p>
+</td>
+</tr>
+<tr align="left" valign="top">
+<td align="left" id="r13c1-t31" headers="r1c1-t31">
+<p>Column definition</p>
+</td>
+<td align="left" headers="r13c1-t31 r1c2-t31">
+<p>The SQL fragment that is used when generating the DDL for the column.</p>
+</td>
+<td align="left" headers="r13c1-t31 r1c3-t31"><br /></td>
+</tr>
+<tr align="left" valign="top">
+<td align="left" id="r14c1-t31" headers="r1c1-t31">
+<p><a id="sthref409" name="sthref409"></a><a id="sthref410" name="sthref410"></a><a id="sthref411" name="sthref411"></a><span class="bold">Fetch</span></p>
+</td>
+<td align="left" headers="r14c1-t31 r1c2-t31">
+<p>Defines how data is loaded from the database:</p>
+<ul>
+<li>
+<p>Eager &ndash; Data is loaded in before it is actually needed.</p>
+</li>
+<li>
+<p>Lazy &ndash; Data is loaded only when required by the transaction.</p>
+</li>
+</ul>
+</td>
+<td align="left" headers="r14c1-t31 r1c3-t31">
+<p>Eager</p>
+</td>
+</tr>
+<tr align="left" valign="top">
+<td align="left" id="r15c1-t31" headers="r1c1-t31">
+<p><span class="bold">Optional</span></p>
+</td>
+<td align="left" headers="r15c1-t31 r1c2-t31">
+<p>Specifies if this field is can be null.</p>
+</td>
+<td align="left" headers="r15c1-t31 r1c3-t31">
+<p>True</p>
+</td>
+</tr>
+<tr align="left" valign="top">
+<td align="left" id="r16c1-t31" headers="r1c1-t31">
+<p><span class="bold">Mutable</span></p>
+</td>
+<td align="left" headers="r16c1-t31 r1c2-t31">
+<p>Specify if the value of a complex field type can be changed (or not changed) instead of being replaced.</p>
+</td>
+<td align="left" headers="r16c1-t31 r1c3-t31">
+<p>True</p>
+</td>
+</tr>
+</tbody>
+</table>
+<br /></div>
+<!-- class="inftblhruleinformal" -->
+<p>Basic mappings also include the following areas:</p>
+<ul>
+<li>
+<p><a href="reference035.htm#CACIHAAF">Type information</a></p>
+</li>
+<li>
+<p><a href="reference037.htm#CACJCHJB">Converters</a></p>
+</li>
+</ul>
+</div>
<!-- class="sect3" -->
-<!-- class="sect2" -->
-<!-- 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="*" />
<tr>
-<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>
</tr>
</table>
</div>
<!-- class="footer" -->
</body>
-</html>
+</html> \ No newline at end of file

Back to the top