20.1. The Sample ApplicationIn order to focus on the features and requirements of Hibernate, we are using a relatively simple application as an example. The application will track the students, professors, classes, and departments of a university. Through this framework, we'll be able to demonstrate the configuration, mapping, and manipulation of persistent domain objects. The application will consist of five major domain classes:
In addition, we'll introduce the Person interface to serve as a common ancestor between Professor and Student. Last, we need to add a layer to manage persistent domain objects. For other applications, you might decide to add a Data Access Object (DAO) with a façade layer on top. We decided that a DAO layer was overkill for such a small application, so we omitted it. |