gigabee wrote:
Ok,
I found this tid bit in the hibernate docs:
Quote:
It is perfectly acceptable for the named persistent class to be an interface. You would then declare implementing
classes of that interface using the <subclass> element.
So, I moved my xdoclet tags to the "User" interface. I tried putting a
"subclass" tag in my AbstractUser class, but it is not getting picked up. I would expect to see xDoclet throw the subclass mappings in the User.hbm.xml file. No Dice.
Any suggestions?
Joshua
It doesn't matter what file they are in.
All that matters is that they are defined correctly.
You can place your <subclass> mappings in the same *.hbm.xml file or in separate files as the parent <class> mapping.