anar wrote:
http://www.hibernate.org/hib_docs/v3/reference/en/html/inheritance.html#inheritance-tablepersubclass
Thank you! Problem sovled. For those that care:
In GenericObject.hbm.xml
Code:
<hibernate-mapping>
<class name="GenericObject" table="GenericObjects">
<id name="id" column="ID">
<generator class="native"/>
</id>
</class>
</hibernate-mapping>
In DerivedObject.hbm.xml
Code:
<hibernate-mapping>
<joined-subclass
name="DerivedObject"
table="DerivedObjects"
extends="GenericObject">
<key column="ID"/>
<property name="otherData" column="OtherData"/>
</joined-subclass>
</hibernate-mapping>
Wow, this Hibernate library is really great thus far!