Chapter 2. Getting Oriented

This chapter provides a non-trivial example of how a developer might use Hibernate in the course of building a simple JSP application. The application in the example is a partial implementation of a simple weblog system. (For an example of a full-blown weblog system, check out or the Hibernate-based

The example shows how to build an application by starting with Hibernate mapping files (*.hbm.xml). These mapping files are used to generate the database schema and the persistent Java code; as the mapping files are updated, the schema and the persistent Java code are updated as well. This isn't the only way to build an application in Hibernate. In Chapter 3, an application ...

Get Hibernate: A J2EE™ Developer's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.