Chapter 4 Generating Hibernate Persistent Objects and JSF Pages
A class can be mapped to multiple tables. In the following, the first mapped class source is the master class source. The primary identifier of the class is mapped to the master class source. All the other classes are secondary tables, which should have a reference key referring to the master table. If this is not the case, a default reference key will be generated. Views cannot have a reference key, and cannot be secondary tables.
Join mappings will be generated for a secondary table if there is any attribute mapped to a column of the table.
To map one class to multiple tables:
Copyright (C) 2005. Sybase Inc. All rights reserved. |
![]() |