blob: 1b560bbfff9959016345624d4e2ee7e55e40b8ef [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>Defining and removing relationships between entities</title>
<!-- contents -->
</head>
<body>
<div class="sect1">
<!-- infolevel="all" infotype="General" -->
<h1>Defining and removing relationships between entities</h1>
<td><div>
<ol>
<li><p>
In the <i>Relations</i> list of the <i>Palette</i>, choose a
relationship type.
</p>
</li>
<li><p>
Click the source entity of the relationship with the primary
mouse button or choose
<kbd title="Keyboard button">ESCAPE</kbd>
to cancel.
</p>
</li>
<li><p>
Click the target entity of the relationship with the primary
mouse button or choose
<kbd title="Keyboard button">ESCAPE</kbd>
to cancel.
</p>
<p>The Eclipse IDE creates and visualizes the relationship, as
well as the relevant relationship attributes of the entities,
depending on the type of relation.</p></li>
<li><p>
To remove a particular relationship, select the relation on the
JPA diagram and choose
<kbd title="Keyboard button">DELETE</kbd>
, or choose <i>Delete</i> in the context menu.
</p>
<div>
<p>Removing a relationship via the JPA diagram also removes
it from the application data model and deletes the relationship
attributes of the two related entities.</p>
</div></li>
</ol>
</div></td>
</div>
</body>
</html>