cokerbl wrote:
Have you tried something like this?
<class name="Thing" table="THING" >
<property name="thingName" column="THINGNAME"/>
<joined-subclass name="SubThing" table="SUBTHING">
<key column="THING_ID">
<property name="subThingName" column="SUBTHINGNAME"/>
</joined-subclass>
</class>
Thanks, I'll investigate that. What I've actually done in the meantime is to refactor the code so that the common stuff is in an abstract class (AbstractThing) which ComplexThing and SimpleThing both extend. It works for this case but isn't really an answer to the general question.