Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EclipseLink/UserGuide/JPA/Basic JPA Development"
< EclipseLink | UserGuide | JPA
m |
m (→Basic JPA Development) |
||
Line 13: | Line 13: | ||
*[[EclipseLink/UserGuide/JPA/Basic JPA Development/Transactions|Transactions]] | *[[EclipseLink/UserGuide/JPA/Basic JPA Development/Transactions|Transactions]] | ||
− | + | Project development is a 3-step process. | |
+ | <table width="800" cellpadding="5"> | ||
+ | <tr valign="top"> | ||
+ | <td> | ||
+ | <div style="padding:5px;border:1px solid #000000;width:250px;background:#cff8d9"> | ||
+ | ==Step 1== | ||
+ | Define your persistence units in <tt>persistence.xml</tt>. | ||
+ | </div> | ||
+ | *[[EclipseLink/UserGuide/JPA/Basic_JPA_Development/Configuration/JPA/persistence.xml|About the persistence.xml file]] | ||
+ | *[[EclipseLink/UserGuide/JPA/Basic_JPA_Development/Configuration/JPA/persistence.xml|Specifying the persistence unit]] | ||
+ | </td> | ||
+ | <td> | ||
+ | <div style="padding:5px;border:1px solid #000000;width:250px;background:#cff8d9"> | ||
+ | ==Step 2== | ||
+ | Annotate classes with @Entity, @Embeddable, and @MappedSuperClass and/or define classes in your mapping file (orm.xml). | ||
+ | </div> | ||
+ | *[[EclipseLink/UserGuide/JPA/Basic_JPA_Development/Mapping/Entity|Configuring an entity]] | ||
+ | *[[Using_EclipseLink_JPA_Extensions_%28ELUG%29|EclipseLink extensions]] | ||
+ | </td> | ||
+ | <td> | ||
+ | <div style="padding:5px;border:1px solid #000000;width:250px;background:#cff8d9"> | ||
+ | ==Step 3== | ||
+ | Configure your application with: | ||
+ | * javax.persistence.transactionType | ||
+ | * javax.persistence.jtaDataSource | ||
+ | * javax.persistence.nonJtaDataSource | ||
+ | </div> | ||
+ | * [[EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Platform_Specific_Configurations|Application development]] | ||
+ | *[[Packaging_and_Deploying_EclipseLink_JPA_Applications_%28ELUG%29|Packaging and deployment]] | ||
+ | </td> | ||
+ | </tr> | ||
+ | </table> | ||
Revision as of 11:20, 16 June 2010
Examples
Basic JPA Development
To develop a JPA project, you must configure the following items:
Project development is a 3-step process.
Step 1Define your persistence units in persistence.xml. |
Step 2Annotate classes with @Entity, @Embeddable, and @MappedSuperClass and/or define classes in your mapping file (orm.xml). |
Step 3Configure your application with:
|