blob: 18d0a05b694fc260cc23722cbebdff9eb1c78323 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
<!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" />
<style>
kbd.keyboard {
font-weight: bold;
color: white;
background-color: #BEBEBE;
}
</style>
<title>Derived Identifiers</title>
<!-- contents -->
</head>
<body>
<div class="sect1">
<!-- infolevel="all" infotype="General" -->
<h1>Derived Identifiers</h1>
<p>
When there is a <b>uni-</b> or <b>bi-directional</b> relationship of
type <b>one-to-one</b> and <b>many-to-one</b>, the owner of the
relationship can derive identity from the target entity.
</p>
<td><div>
<ol>
<li><p>
In the <i>Derived Identifiers</i> list of <i>Palette</i>, choose
a relationship type.
</p></li>
<li><p>
Click on the source entity of the relationship or press
<kbd class="keyboard">ESCAPE</kbd>
to cancel.
</p></li>
<li><p>
Click on the target entity of the relationship or press
<kbd class="keyboard">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 press
<kbd class="keyboard">DELETE</kbd>
, or choose <i>Delete</i> from 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>
|