This chapter describes how to use the Java Persistence API from web applications. The material here focuses on the source code and settings of an example called
bookstore, a web application that manages entities related to a book store. This chapter assumes that you are familiar with the concepts detailed in Chapter 24.
Data that is shared between web components and is persistent between invocations of a web application is usually maintained in a database. Web applications use the Java Persistence API (see Chapter 24) to access relational databases.
The Java Persistence API provides a facility for managing the object/relational mapping (ORM) of Java objects to persistent ...