Is there a way in the mapping document to declare that a give class implements an interface? Basically, a subset of my classes have common attributes that a I have captured in an interface for common handling on save/updates.
I am using the hbm2java tool to generate my classes, but each time I need to re-generate the classes, I have to hand modify my classes to add back the "implements MyInterface"
One thing I just realized is that I could use aspectj to introduce this interface on my classes and get the same behavior, but I would like to avoid that if possible.
Any hints would be appreciated.
|