We have a Unit object (military Unit that represents the army hierarchy - e.g. Division is a Unit; a Division can contain a Brigade which is a Unit). We use a single table, tblUnit, with a parentUnitID (foreign key to the same table). The parentUnitID can be null. How is this modeled in hibernate/nHibernate?
Note that we also have a Unit object hierachy with different types of Units persisted using the single table, tblUnit (table-per-class-hierarchy); this means we want both relationships.
Thanks,
Bill
_________________ metazone
|