Jump to: navigation, search

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

m
(Undo revision 237699 by Ben.gelernter.oracle.com (Talk))
Line 11: Line 11:
 
=Basic JPA Development=
 
=Basic JPA Development=
 
To develop a JPA project, you must be aware of the following items:
 
To develop a JPA project, you must be aware of the following items:
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/EclipseLink JPA|About EclipseLink JPA]]
+
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/Configuration|JPA Configuration]]
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/Configuration|Configuration]]  
+
 
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping|Mappings]]
 
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping|Mappings]]
 
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching|Caching]]
 
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/Caching|Caching]]

Revision as of 15:00, 5 April 2011

EclipseLink JPA

link="http://wiki.eclipse.org/EclipseLink"
EclipseLink
Website
Download
Community
Mailing ListForumsIRC
Bugzilla
Open
Help Wanted
Bug Day
Contribute
Browse Source

Basic JPA Development

To develop a JPA project, you must be aware of the following items:

Project development is a 3-step process.

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-logo.gif
Version: 2.2.0 DRAFT
Other versions...