Chapter 4 Generating Hibernate Persistent Objects and JSF Pages


Defining Hibernate Basic O/R Mapping

Each class has an XML file, <Class>.hbm.xml, which acts as its Hibernate O/R mapping file.

Classes can be mapped to tables or views. Since views have many constraints and limited functionality (for example they do not have primary keys and reference keys), some views cannot be updated, and the mappings may not work properly in some cases.

There are some conditions that need to be met in order to generate mapping for a specific class:

 


Copyright (C) 2005. Sybase Inc. All rights reserved.