Chapter 20. Running the Persistence Examples

This chapter explains how to use the Java Persistence API. The material here focuses on the source code and settings of three examples. The first example, order, is an application that uses a stateful session bean to manage entities related to an ordering system. The second example, roster, is an application that manages a community sports system. The third example, address-book, is a web application that stores contact data. This chapter assumes that you are familiar with the concepts detailed in Chapter 19, “Introduction to the Java Persistence API.”

The following topics are addressed here:

• “The order Application” on page 357

• “The roster Application” on page 369

• “The address-book Application ...

Get The Java EE 6 Tutorial: Basic Concepts, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.