Howdy -
I'm using Middlegen/hbm2java/Ant to generate mappings and POJOs for my project. I would like to have my domain objects sublclass the generated classes but not add any additional persistent information.
I was wondering whether it was possible to have a mapping like so
Code:
<class
name="com.generated.NastySuperClass"
table="DUDE"
>
...
<subclass name="com.not.generated.NiftySubClass" />
...
</subclass>
Now I understand that I could simply use the tools to generate the code and then map my subclass directly (or cut and paste and not subclass at all); but, I was hoping to use this approach for several domain classes, and I would like to avoid having to do all relevant FK mappings by hand when things change.
Thanks!
Matt