1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
* Copyright � 2007 Sun Microsystems, Inc.
5
* Use is subject to license terms.
9
<title>Adding Support for Java Persistence</title>
10
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
11
<link rel="stylesheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
16
<h2>Adding Support for Java Persistence</h2>
17
<p><small><a href="#seealso">See Also</a></small></p>
18
<p>Support for Java Persistence is available to Java EE 5 and Java SE applications running on the Java EE 5 platform.
19
If you have a J2EE 1.4 application it is possible to use Java Persistence if the target container is running on the Java EE 5 platform.
20
The container does not need to be a Java EE 5 container.</p>
22
<li>You cannot use a container-managed entity manager in a J2EE 1.4 application.</li>
25
If your target server is not a Java EE 5 container, you can add support for Java Persistence functionality
26
by adding the TopLink Essentials library to the project or the classpath of the container.
27
The TopLink Essentials library contains the necessary libraries to support Java Persistence.
28
The TopLink Essentials library is bundled with the IDE.</p>
30
<p><b>To add Java Persistence support to the project:</b></p>
32
<li>In the Projects window, expand your project node, right-click the Libraries node and choose Add Library.</li>
33
<li>In the Add Library dialog box, select TopLink Essentials and click Add Library.</li>
35
<p>When you add the TopLink Essentials library to your project, the TopLink Essentials library will be packaged with the EAR or WAR file
36
when you build the project.</p>
38
<dt><a name="seealso">See Also</a></dt>
39
<dd><a href="nbdocs://org.netbeans.modules.j2ee.platform/org/netbeans/modules/j2ee/platform/docs/enterprise/general/ent_app_process.html">Working with Enterprise Applications</a> </dd>
40
<dd><a href="nbdocs://org.netbeans.modules.java.helpset/org/netbeans/modules/java/helpset/docs/compile/comp_classpath.html">Managing the Classpath</a></dd>
41
<dd><a href="nbdocs://org.netbeans.modules.java.helpset/org/netbeans/modules/java/helpset/docs/compile/comp_libraries.html">About Java Class Libraries</a></dd>
42
<dd><a href="persistence_about.html">About Java Persistence</a> </dd>
46
<small> <a href="../../credits.html">Legal Notices</a></small>
47
<table cellpadding="50" border="0">
48
<tr><td> </td></tr>