Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EclipseLink/UserGuide/Developing JPA Projects (ELUG)"

m
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Developing JPA Projects=
+
[[Image:Elug draft icon.png]] '''For the latest EclipseLink documentation, please see http://www.eclipse.org/eclipselink/documentation/ '''
This part describes the Java Persistence API, including the EclipseLink implementation, and contains the following sections:
+
  
*[[Introduction to Java Persistence API (ELUG)]] – Introduces concepts of Java Persistence API.
+
----
  
*[[Introduction to EclipseLink JPA (ELUG)]] – Contains general information on EclipseLink implementation of Java Persistence API.
+
__NOTOC__
 +
<table width="800" cellpadding="5">
 +
<tr valign="top">
 +
<td>
 +
<div style="padding:5px;border:1px solid #000000;width:250px;background:#cff8d9">
 +
==Step 1==
 +
Define your persistence units in <tt>persistence.xml</tt>.
 +
</div>
 +
*[[Introduction_to_Java_Persistence_API_(ELUG)#persistence.xml_File|About the persistence.xml file]]
 +
*[[Packaging_and_Deploying_EclipseLink_JPA_Applications_(ELUG)#How_to_Specify_the_Persistence_Unit_Name|Specifying the persistence unit]]
 +
</td>
 +
<td>
 +
<div style="padding:5px;border:1px solid #000000;width:250px;background:#cff8d9">
 +
==Step 2==
 +
Annotate classes with @Entity, @Embeddable, and @MappedSuperClass and/or define classes in your mapping file (orm.xml).
 +
</div>
 +
*[[Introduction_to_EclipseLink_JPA_%28ELUG%29#Configuring_an_Entity|Configuring an entity]]
 +
*[[Using_EclipseLink_JPA_Extensions_%28ELUG%29|EclipseLink extensions]]
 +
</td>
 +
<td>
 +
<div style="padding:5px;border:1px solid #000000;width:250px;background:#cff8d9">
 +
==Step 3==
 +
Configure your application with:
 +
* javax.persistence.transactionType
 +
* javax.persistence.jtaDataSource
 +
* javax.persistence.nonJtaDataSource
 +
</div>
 +
* [[Developing_Applications_Using_EclipseLink_JPA_%28ELUG%29|Application development]]
 +
*[[Packaging_and_Deploying_EclipseLink_JPA_Applications_%28ELUG%29|Packaging and deployment]]
 +
</td>
 +
</tr>
 +
</table>
  
*[[Using EclipseLink JPA Extensions (ELUG)]] – Contains a listing of the EclipseLink JPA extensions and describes how to use them.
 
  
*[[Configuring a EclipseLink JPA Application (ELUG)]] – Contains information on how to configure the EclipseLink persistence project, as well as set up the application configuration and packaging.
 
  
*[[Developing Applications Using EclipseLink JPA (ELUG)]] – Describes the actual steps you have to perform to develop your EclipseLink JPA application.
+
==EclipseLink User's Guide==
 +
The following sections describe the Java Persistence API, including the EclipseLink implementation:
  
*[[Packaging and Deploying EclipseLink JPA Applications (ELUG)]] – Describes how to package and deploy your EclipseLink JPA application.
+
*[[Introduction to Java Persistence API (ELUG)|Introduction to Java Persistence API]]
 +
 
 +
*[[Introduction to EclipseLink JPA (ELUG)|Introduction to EclipseLink JPA]]
 +
 
 +
*[[Using EclipseLink JPA Extensions (ELUG)|Using EclipseLink JPA Extensions]]
 +
 
 +
*[[Configuring a EclipseLink JPA Application (ELUG)|Configuring a EclipseLink JPA Application]] – contains information on how to configure the EclipseLink persistence project, as well as set up the application configuration and packaging.
 +
 
 +
*[[Developing Applications Using EclipseLink JPA (ELUG)|Developing Applications Using EclipseLink JPA]] – describes the actual steps you have to perform to develop your EclipseLink JPA application.
 +
 
 +
*[[Packaging and Deploying EclipseLink JPA Applications (ELUG)|Packaging and Deploying EclipseLink JPA Applications]]
  
  

Latest revision as of 11:23, 18 July 2012

Elug draft icon.png For the latest EclipseLink documentation, please see http://www.eclipse.org/eclipselink/documentation/



Step 1

Define your persistence units in persistence.xml.

Step 2

Annotate classes with @Entity, @Embeddable, and @MappedSuperClass and/or define classes in your mapping file (orm.xml).

Step 3

Configure your application with:

  • javax.persistence.transactionType
  • javax.persistence.jtaDataSource
  • javax.persistence.nonJtaDataSource


EclipseLink User's Guide

The following sections describe the Java Persistence API, including the EclipseLink implementation:


Related Topics


Copyright Statement

Back to the top