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 http://blogger.com/ or the Hibernate-based http://www.rollerweblogger.org/.)

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.