The following examples are provided to assist developers with their adoption and usage of EclipseLink's JPA and native ORM functionality. See [[EclipseLink/UserGuide/Developing JPA Projects (ELUG)|Developing JPA Projects]] in the [[EclipseLink/UserGuide|EclipseLink User's Guide]] for details.

+

The following examples are provided to assist developers with their adoption and usage of EclipseLink's JPA and native ORM functionality. See the [http://www.eclipse.org/eclipselink/documentation/ EclipseLink Solutions Guide] and [http://www.eclipse.org/eclipselink/documentation/ Understanding EclipseLink (Concepts Guide)] for details.

Source code to several of these examples, and to other examples can be found in EclipseLink's SVN repository, [http://dev.eclipse.org/svnroot/rt/org.eclipse.persistence/trunk/examples/ here], or accessed through [[EclipseLink/Source|SVN]], or [http://www.eclipse.org/eclipselink/downloads/index.php downloads].

Source code to several of these examples, and to other examples can be found in EclipseLink's SVN repository, [http://dev.eclipse.org/svnroot/rt/org.eclipse.persistence/trunk/examples/ here], or accessed through [[EclipseLink/Source|SVN]], or [http://www.eclipse.org/eclipselink/downloads/index.php downloads].

Line 14:

Line 14:

* [[EclipseLink/Examples/JPA/EMAPI | Using the EntityManager API]]

* [[EclipseLink/Examples/JPA/EMAPI | Using the EntityManager API]]

* [[EclipseLink/Examples/JPA/Locking | How to use locking]]

* [[EclipseLink/Examples/JPA/Locking | How to use locking]]

−

* [[EclipseLink/Examples/JPA/Caching | How to use caching]]

−

* [[EclipseLink/Examples/JPA/CacheCoordination| How to enable cache coordination]] : For caching in a cluster.

* [[EclipseLink/Examples/JPA/Auditing | How to use database auditing, proxy authentication and VPD]]

* [[EclipseLink/Examples/JPA/Auditing | How to use database auditing, proxy authentication and VPD]]

* [[EclipseLink/Examples/JPA/Partitioning | How to use load balancing, replication and data partitioning]]

* [[EclipseLink/Examples/JPA/Partitioning | How to use load balancing, replication and data partitioning]]

+

* [[EclipseLink/Examples/JPA/Composite | How to access multiple databases from a single composite persistence unit]]

*The following tutorials are for enterprise developers interested in container or application managed persistence using the JPA 1.0 or 2.0 API.

*The following tutorials are for enterprise developers interested in container or application managed persistence using the JPA 1.0 or 2.0 API.

−

*See the [http://wiki.eclipse.org/EclipseLink/Examples/Distributed Distributed JPA Application] case study on how JPA works with Java EE 6 API elements - specifically as a shared memory application that does not use an L2 cache.

+

*See the [http://wiki.eclipse.org/EclipseLink/Examples/Distributed Distributed JPA Application] case study on how a '''Service/Workers''' parallel pattern based application uses JPA to deal with Optimistic lock exception scenarios using Java EE 6 API elements - specifically as a single persistence unit used by the distributed application as an alternative to using a shared L2 cache.

Using Native EclipseLink ORM API

Migration

Tutorials

Application Server Tutorials

The following tutorials are for enterprise developers interested in container or application managed persistence using the JPA 1.0 or 2.0 API.

See the Distributed JPA Application case study on how a Service/Workers parallel pattern based application uses JPA to deal with Optimistic lock exception scenarios using Java EE 6 API elements - specifically as a single persistence unit used by the distributed application as an alternative to using a shared L2 cache.

We use a standard container managed @PersistenceContext(..TransactionType dependency injected EntityManager) that is injected on a @Stateless session bean so that the container can provide a thread safe proxy wrapper around the @NotThreadSafe EntityManager and provide us with instrumented transaction management and change tracking. The client servlet gets injected with the @EJB SSB by the web container and is completely separated from the JPA persistence concern.

These tutorials need to be finished and/or expanded - vote for EclipseLink bug# 308477 if you would like this work to be fast tracked.

EclipseLink JPA Examples Matrix by Container

The following grid cross-references the above JPA Java EE Tutorials by Application server, Database and type of presentation framework - to answer the question "How to run EclipseLink JPA on an application server against a particular database"?