Jump to: navigation, search

Difference between revisions of "EclipseLink/Examples/JPARS/HelloDynamic"

(New page: == EclipseLink JPA-RS Example: Dynamic Hello World == This example illustrates the basic usage of EclipseLink's JPA-RS component combined with dynamic persistence to illustrate how JPA ca...)
(No difference)

Revision as of 10:00, 10 August 2012

EclipseLink JPA-RS Example: Dynamic Hello World

This example illustrates the basic usage of EclipseLink's JPA-RS component combined with dynamic persistence to illustrate how JPA can be exposed over REST without requiring any code on the server. This example documents the construction of the example application using Eclipse Juno's Java EE distribution.

Example Model

Steps

The basic steps for this constructing this demo from scratch are:

  1. Create a new Maven project
  2. Configure EclipseLink repository and dependency
    1. Enable and configure as dynamic web facet
  3. Configure EclipseLink
    1. Enable and configure JPA facet with EclipseLink library
    2. Add JPA-RS fragment to application
    3. Configure persistence.xml