
Chapter 9 Generating Persistent Objects for Java and JSF Pages
Defining Hibernate Inheritance Mappings
Hibernate supports the three basic inheritance mapping strategies:
- Table per class hierarchy
- Table per subclass
- Table per concrete class
- There are not any special different from standard inheritance mapping definition in O/R Mapping Modeling. However, a separate mapping file is generated for each inheritance hierarchy that has a unique mapping strategy. All mappings of subclasses are defined in the mapping file. The mapping file is generated for the root class of the hierarchy.
|
Copyright (C) 2006. Sybase Inc. All rights reserved.
|
|