O'Reilly logo

Hibernate: A J2EE™ Developer's Guide by Will Iverson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Mapping Files

As can be seen from the examples in Chapters 1 through 4, the *.hbm.xml files are at the heart of an application's use of Hibernate. Depending on your needs, you may or may not work with *.hbm.xml files directly (for example, you may prefer to work with Java code and use XDoclet, as shown in Chapter 3, or to start from an existing database, as shown in Chapter 4), but it's vital to understand the structure and options available in a *.hbm.xml mapping files. The options presented in XDoclet and Middlegen are based on the options available in these mapping files.

This chapter is intended as a reference, organized alphabetically, by tag. A description of each tag is included, as well as some notes and comments on usage where ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required