blob: f319e6ea9d4719ed10efe54e1d43ae764e9845ba [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>Open JPA Diagram, create and display entities</title>
<!-- contents -->
</head>
<body>
<div class="sect1">
<!-- infolevel="all" infotype="General" -->
<h2>Opening JPA Diagram Editor</h2>
<td><div>
<ol>
<li><p>
In the <i>Project Explorer</i>, select the project that you are
using or want to use for your entities.
</p>
</li>
<li><p>
In the context menu, choose <span title="Navigation path">
<i>JPA Tools</i> -&grt; <i>Open Diagram</i>
</span>.
</p>
</li>
</ol>
</div></td>
<h2>Creating new entities</h2>
<td><p>
In the <i>Entities</i> list of the <i>Palette</i>, choose <span><img
src="../img/jpaeditor_entity.gif" alt="Entity" title="Entity" /> (<i
title="Quick info">Entity</i>)</span>, then click the diagram area.
</p>
<p>The Eclipse IDE creates the new entity with a predefined name
and a primary key.</p></td>
<h2>Displaying existing entities (if any) within a project on the
diagram</h2>
<td><div>
<ul>
<li><p>
To display a single entity, copy the entity using drag and drop
from the <i>Project Explorer</i> to the JPA diagram.
</p>
</li>
<li><p>
To display all entities, click the JPA diagram with the secondary
mouse button and choose <i>Show All Entities</i>, or copy the <i>JPA
Content</i> node from the project in the <i>Project Explorer</i> to
the JPA diagram, using drag and drop.
</p>
</li>
</ul>
</div></td>
</div>
</body>
</html>