Hi,
I have a class hierarchy as follows.
Abstact Class Object1 (name, date)
Class Object2 inherits Object1 (age)
Class Object3 inherits Object1 (IList Links)
Ive employed a one table per subclass mapping for the above. Object2 adds extra columns which are mapped as a joined subclass, this is fine and dandy. However Object3 doesn't add any extra columns but instead has a collection property of links from a Links table.
What is the best way to map this? Creating a table for Object3 seems pointless as they share the same Identifier as the Object1 table.
What I want is a joined subclass without a table but this sounds wrong.
Any help greatly appreciated.
|