Beginner |
|
Joined: Wed Jun 29, 2005 10:40 am Posts: 30 Location: denver, co
|
You could create a hierarchy of classes for each table, and use <joined-subclass> mappings so you can hydrate a single object from many different tables.
Example:
Class "PersonBase" maps to the "PersonBase" table.
Class "Person" extends "PersonBase" and maps (via a <joined-subclass>) to the "ExtendedPerson" table.
Now you can query from PersonBase and get your basic information, or you could query from Person and get the info that spans both tables.
|
|