Skip to main content
Jump to: navigation, search

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

Line 49: Line 49:
|previous=[[EclipseLink/UserGuide/JPA/Introduction/About_EclipseLink|About EclipseLink]]
|previous=[[EclipseLink/UserGuide/JPA/Introduction/About_EclipseLink|About EclipseLink]]
|next=[[EclipseLink/UserGuide/JPA/Basic JPA Development/Configuration|Configuration]]
|next=   [[EclipseLink/UserGuide/JPA/Basic JPA Development/Configuration/EclipseLink JPA|About EclipseLink JPA]]
|up=[[EclipseLink/UserGuide/JPA|JPA User's Guide]]}}
|up=     [[EclipseLink/UserGuide/JPA|JPA User's Guide]]
|version= 2.10}}

Revision as of 10:57, 18 June 2010

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

Version: 2.10
Other versions...

Back to the top