Category:JPA

From Eclipsepedia

Revision as of 03:53, 22 May 2009 by Douglas.clarke.oracle.com (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search
Image:Eclipselink jpa.png‎ This page lists all sections in the EclipseLink User's Guide 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