Skip to main content
Jump to: navigation, search

Difference between revisions of "Category:JPA"

m (quick 1, 2, 3, steps)
m
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
'''[[Image:Elug_draft_icon.png|Warning]] This page is obsolete. Please see the [http://www.eclipse.org/eclipselink/documentation/ EclipseLink Documentation Center]'' for current information.'''
 +
 
__NOTOC__
 
__NOTOC__
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
 
| [[Image:Eclipselink jpa.png‎]]
 
| [[Image:Eclipselink jpa.png‎]]
| This page lists all sections in the ''[[EclipseLink/UserGuide|EclipseLink User's Guide]]'' for '''JPA''' (Java Persistence API) projects. You can also use [[:Category:ORM|EclipseLink's Native ORM support]] to extend JPA.
+
| This page lists all sections in the ''[[EclipseLink/UserGuide|EclipseLink User's Guide 1.x]]'' for '''JPA''' (Java Persistence API) projects. You can also use [[:Category:ORM|EclipseLink's Native ORM support]] to extend JPA.
 
|}
 
|}
  
Line 42: Line 44:
  
  
[[Category:Architecture]]
+
[[Category:EclipseLink User's Guide]]

Latest revision as of 12:59, 30 January 2013

Warning This page is obsolete. Please see the EclipseLink Documentation Center for current information.


Eclipselink jpa.png This page lists all sections in the EclipseLink User's Guide 1.x for JPA (Java Persistence API) projects. You can also use EclipseLink's Native ORM support to extend JPA.


Developing Applications using EclipseLink JPA

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

Back to the top