This chapter describes how to use the Java Persistence API from enterprise beans. The material here focuses on the source code and settings of two examples. The first example called
order is an application that uses a stateful session bean to manage entities related to an ordering system. The second example is
roster, an application that manages a community sports system. This chapter assumes that you are familiar with the concepts detailed in Chapter 24.
order application is a simple inventory and ordering application for maintaining a catalog of parts and placing an itemized order of those parts. It has entities that represent parts, vendors, orders, and line items. These entities ...