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.
EclipseLink/Examples/JPARS/HelloDynamic
< EclipseLink | Examples
Revision as of 10:00, 10 August 2012 by Unnamed Poltroon (Talk) (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...)
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:
- Create a new Maven project
- Configure EclipseLink repository and dependency
- Enable and configure as dynamic web facet
- Configure EclipseLink
- Enable and configure JPA facet with EclipseLink library
- Add JPA-RS fragment to application
- Configure persistence.xml