Difference between revisions of "EclipseLink/UserGuide/JPA/Basic JPA Development"

From Eclipsepedia

Jump to: navigation, search
m (Replacing page with ''''Warning See "Understanding EclipseLink Application Development" in the [http://www.eclipse.org/eclipselink/documentation/ EclipseLink Concepts ...')
 
(28 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{EclipseLink_Examples
+
'''[[Image:Elug_draft_icon.png|Warning]] See "Understanding EclipseLink Application Development" in the [http://www.eclipse.org/eclipselink/documentation/ EclipseLink Concepts Guide]'''
|example=*[[EclipseLink/Examples/JPA/Configure|Configuration]]
+
*[[EclipseLink/Examples/JPA/Caching|Caching]]
+
*[[EclipseLink/Examples/JPA#Queries|Queries]]
+
}}
+
=Basic JPA Development=
+
 
+
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/About_EclipseLink|About EclipseLink]]
+
|next=[[EclipseLink/UserGuide/JPA/Basic JPA Development/Configuration|Configuration]]
+
|up=[[EclipseLink/UserGuide/JPA|JPA User's Guide]]}}
+

Latest revision as of 09:09, 18 January 2013

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