Hibernate version:2.14
Name and version of the database you are using:MySQL
Is there any way to achieve the following in Hibernate 2.14.
I have two tables in a database, Asset and PhysicalAsset. PhysicalAsset is a sub-class of Asset and I can map this using joined-subclass. However I which to add additional subclasses of PhysicalAsset which are not tables in the database. e.g. Parcel and Package. There is a further complication in that the discriminator for deciding these classes is held in the Asset table.
This is the simplified database table view:
Asset
id - Unique Id
type - Parcel, Package etc.
PhysicalAsset
id - Unique Id
name - UniqueName
owner - Owner
Is this possible or are there any other approaches I could adopt?
Thanks,
John.
|