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"

Line 24: Line 24:
 
</div>
 
</div>
 
{{Template:EclipseLink_Spec
 
{{Template:EclipseLink_Spec
|section=Chapter 8 "Entity Packaging"
+
|section=Section 3.1, "EntityManager," and Chapter 8. "Entity Packaging."
 
}}
 
}}
  
Line 34: Line 34:
 
Annotate classes with @Entity, @Embeddable, and @MappedSuperClass and/or define classes in your mapping file (orm.xml).
 
Annotate classes with @Entity, @Embeddable, and @MappedSuperClass and/or define classes in your mapping file (orm.xml).
 
</div>
 
</div>
 +
{{Template:EclipseLink_Spec
 +
|section=Chapter 2 "The Entity Class"
 +
}}
 +
 
*[[EclipseLink/UserGuide/JPA/Basic_JPA_Development/Mapping/Entity|Configuring an entity]]
 
*[[EclipseLink/UserGuide/JPA/Basic_JPA_Development/Mapping/Entity|Configuring an entity]]
 
*[[Using_EclipseLink_JPA_Extensions_%28ELUG%29|EclipseLink extensions]]
 
*[[Using_EclipseLink_JPA_Extensions_%28ELUG%29|EclipseLink extensions]]

Revision as of 11:25, 13 April 2011


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.

Elug javaspec icon.gif

For more information, see Section 3.1, "EntityManager," and Chapter 8. "Entity Packaging." in the JPA Specification.

Step 2

Annotate classes with @Entity, @Embeddable, and @MappedSuperClass and/or define classes in your mapping file (orm.xml).

Elug javaspec icon.gif

For more information, see Chapter 2 "The Entity Class" in the JPA Specification.

Step 3

Configure your application with:

  • javax.persistence.transactionType
  • javax.persistence.jtaDataSource
  • javax.persistence.nonJtaDataSource


Eclipselink-logo.gif
Version: 2.1.0
Other versions...

Back to the top