Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

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

m
m
Line 2: Line 2:
 
|info=y
 
|info=y
 
|toc=n
 
|toc=n
 +
|eclipselink=y
 +
|eclipselinktype=JPA
 
|examples=y
 
|examples=y
 
|example=*[[EclipseLink/Examples/JPA/Configure|Configuration]]
 
|example=*[[EclipseLink/Examples/JPA/Configure|Configuration]]
Line 53: Line 55:
 
|next=    [[EclipseLink/UserGuide/JPA/Basic JPA Development/EclipseLink JPA|About EclipseLink JPA]]
 
|next=    [[EclipseLink/UserGuide/JPA/Basic JPA Development/EclipseLink JPA|About EclipseLink JPA]]
 
|up=      [[EclipseLink/UserGuide/JPA|JPA User's Guide]]
 
|up=      [[EclipseLink/UserGuide/JPA|JPA User's Guide]]
|version= 2.1.0}}
+
|version= 2.2.0 DRAFT}}

Revision as of 10:25, 12 January 2011

EclipseLink JPA

Eclipselink-logo.gif
EclipseLink
Website
Download
Community
Mailing ListForumsIRCmattermost
Issues
OpenHelp WantedBug 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...

Back to the top