Creating the Demonstration classes
City entity and its supporting classes will provide methods which will illustrate the use of transactions. A session facade is created for the class along with a servlet and a
PopulationManager class. This class along with the session facade is where we will find most of the transactions used in this chapter.
In this recipe, we will create a series of classes to support the illustration of transaction processing. These classes include:
CityAn entity class representing a city
CityFacadeA facade class supporting the
AbstractFacadeThe base class for
PopulationServletA servlet to drive the application
Subsequent recipes will build upon these classes.
How to do it...
Create a new ...