Accessing data with JPA

The Employee List sample demonstrates the use of Java Persistent API (JPA) to access employee data. In the sample, the application maps persistent entities to columns in a database table and presents the information on a Web site, where users can create, read, update, and delete data.
To create a Web page that accesses data using JPA technology:
  1. Create a dynamic Web project and activate the JavaServer Faces (IBM Enhanced) facet and the Java Persistence facet.
  2. Create Java Persistence entities from data in a database.
  3. Display the JPA data on a Web page, using JSF components, by dragging the JPA component from the Data and Services drawer on the palette.

For more information on accessing data in a Web application with JPA, see the Help topic about Help: Adding data to a Web page using JPA.


Feedback