Skip to main content
summaryrefslogtreecommitdiffstats
blob: 65b755be9b52d2fb281f48e2e609d4d61748b002 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!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>Creating and Displaying Persistent Types</title>

<!-- contents -->
</head>
<body>

	<div class="sect1">
		<!-- infolevel="all" infotype="General" -->
		<h2>Opening the JPA Diagram Editor</h2>
		<td><div>
				<ol>
					<li><p>
							In the <i>Project Explorer</i>, select the project that you want
							to use for your entities.
						</p></li>
					<li><p>
							From the project context menu, choose <span
								title="Navigation path"> <i>JPA Tools</i> &rarr; <i>Open
									Diagram</i>
							</span>.
						</p></li>
				</ol>
			</div></td>

		<h2>Creating New Entity</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>, and then click upon the diagram
				area.
			</p>
			<p>The Eclipse IDE creates the new entity with a predefined name
				and a primary key.</p></td>

		<h2>Creating New Embeddable</h2>
		<td><p>
				In the <i>Entities</i> list of the <i>Palette</i>, choose <span><img
					src="../img/jpaeditor_embeddable.gif" alt="Embeddable"
					title="Embeddable" /> (<i title="Quick info">Embeddable</i>)</span>, and
				then click upon the diagram area.
			</p>
			<p>The Eclipse IDE creates the new embeddable with a predefined
				name.</p></td>

		<h2>Creating New Mapped Superclass</h2>
		<td><p>
				In the <i>Entities</i> list of the <i>Palette</i>, choose <span><img
					src="../img/jpaeditor_mapped_superclass.gif"
					alt="Mapped Superclass" title="Mapped Superclass" /> (<i
					title="Quick info">Mapped Superclass</i>)</span>, and then click upon the
				diagram area.
			</p>
			<p>The Eclipse IDE creates the new mapped superclass with a
				predefined name.</p></td>

		<h2>Displaying Existing Persistent Types within a Project on the Diagram</h2>
		<td><div>
				<ul>
					<li><p>
							To display a single persistent type, copy the persistent type,
							using drag and drop, from the <i>Project Explorer</i> to the JPA
							diagram.
						</p></li>
					<li><p>
							To display all persistent types, click on the JPA diagram with the
							secondary mouse button and choose <i>Show all Persistent
								Types</i>. The alternative way is to 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>

Back to the top