blob: 07aca962ba4d1338885cf34f236798959f68f92f [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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>Tips and tricks</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 2.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-2.0/. 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="2013-04-05T12:21:46Z" />
<meta name="robots" content="noarchive" />
<meta name="doctitle" content="Tips and tricks" />
<meta name="relnum" content="Release 3.3" />
<meta name="partnum" content="Release 3.3" />
<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" />
</head>
<body>
<p><a id="CHDHGHBF" name="CHDHGHBF"></a></p>
<h1>Tips and tricks</h1>
<p>The following tips and tricks give some helpful ideas for increasing your productivity.</p>
<div class="inftblhruleinformalwide">
<table class="HRuleInformalWide" summary="Tips and Tricks" dir="ltr" border="1" width="100%" frame="hsides" rules="rows" cellpadding="3" cellspacing="0">
<col width="24%" />
<col width="*" />
<tbody>
<tr align="left" valign="top">
<td align="left" id="r1c1-t2">
<p><span class="bold">Database connections</span></p>
</td>
<td align="left">
<p><a id="sthref738" name="sthref738"></a>When starting a new workbench session, be sure to <a href="../org.eclipse.datatools.connectivity.doc.user/doc/html/asc1229700343352.html">reconnect to your database</a> (if you are working online). This allows Dali to provide database-related mapping assistance and validation.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r2c1-t2">
<p><span class="bold">Schema-based persistence.xml file</span></p>
</td>
<td align="left" headers="r2c1-t2">
<p><a id="sthref739" name="sthref739"></a><a id="sthref740" name="sthref740"></a>If you are behind a firewall, you may need to configure your Eclipse workspace proxy in the <a href="../org.eclipse.platform.doc.user/reference/ref-72.htm">Preferences dialog</a> (<span class="gui-object-action">Preferences &gt; Internet &gt; Proxy Settings</span>) to properly validate a schema-based <code>persistence.xml</code> file.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r3c1-t2">
<p><span class="bold">@XmlPath content assist and validation</span></p>
</td>
<td align="left" headers="r3c1-t2">
<p><a id="sthref741" name="sthref741"></a><a id="sthref742" name="sthref742"></a>Dali supports <code>@XmlPath</code> content assist and validation. You can now easily traverse deeply nested XML structures specifying <code>XmlPath</code> values.</p>
<img src="img/xmlpath_validation.png" alt="" title="" /></td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r4c1-t2">
<p><span class="bold">Making persistent entities</span></p>
</td>
<td align="left" headers="r4c1-t2">
<p>With the <a href="reference075.htm#CACIBDFB">Make Persistent dialog</a>, you can easily transform Java classes into persistent entities via Java annotation or entry in an XML mapping file. With multi-select, you can quickly create many entities at once.</p>
<img src="img/MakePersistentMenu.png" alt="" title="" /></td>
</tr>
</tbody>
</table>
<br /></div>
<!-- class="inftblhruleinformalwide" -->
<!-- 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;2011, 2013,&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>