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/JPA/Basic JPA Development"

m
m (Replacing page with ''''Warning See "Understanding EclipseLink Application Development" in the [http://www.eclipse.org/eclipselink/documentation/ EclipseLink Concepts ...')
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{EclipseLink_UserGuide}}
+
'''[[Image:Elug_draft_icon.png|Warning]] See "Understanding EclipseLink Application Development" in the [http://www.eclipse.org/eclipselink/documentation/ EclipseLink Concepts Guide]'''
__NOTOC__
+
=Basic JPA Development=
+
{{EclipseLink_Examples
+
|example=*[[EclipseLink/Examples/JPA/Configure|Configuration]]
+
*[[EclipseLink/Examples/JPA/Caching|Caching]]
+
*[[EclipseLink/Examples/JPA#Querying|Queries]]
+
}}
+
To develop a JPA project, you must be aware of the following items:
+
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/Configuration|JPA Configuration]]
+
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping|Mappings]]
+
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching|Caching]]
+
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/Querying|Queries]]
+
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/Transactions|Transactions]]
+
 
+
Project development is a 3-step process.
+
<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>
+
*[[EclipseLink/UserGuide/JPA/Basic_JPA_Development/Configuration/JPA/persistence.xml|About the persistence.xml file]]
+
*[[EclipseLink/UserGuide/JPA/Basic_JPA_Development/Configuration/JPA/persistence.xml|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>
+
*[[EclipseLink/UserGuide/JPA/Basic_JPA_Development/Mapping/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>
+
* [[EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Platform_Specific_Configurations|Application development]]
+
*[[Packaging_and_Deploying_EclipseLink_JPA_Applications_%28ELUG%29|Packaging and deployment]]
+
</td>
+
</tr>
+
</table>
+
 
+
 
+
{{EclipseLink_JPA
+
|previous=[[EclipseLink/UserGuide/JPA/Introduction/Architecture|EclipseLink Application Architectures]]
+
|next=    [[EclipseLink/UserGuide/JPA/Basic JPA Development/EclipseLink JPA|About EclipseLink JPA]]
+
|up=      [[EclipseLink/UserGuide/JPA|JPA User's Guide]]
+
|version= 2.1.0}}
+

Latest revision as of 09:09, 18 January 2013

Warning See "Understanding EclipseLink Application Development" in the EclipseLink Concepts Guide

Back to the top