(FYI, I've read all the FAQs, searched the forum, and read the hmtl docs, read the HIA book. I've seen several posts on interface mappings, but all seemed to dead-end with no definitive answer.)
- I would like to persist a hiearchy of classes implementing an interface with no shared base class.
- I don't want to declare 'getId, getVersion, etc' in the interface (I'm using aspectwerkz to introduce these methods as a mixin to the concrete classes.)
- I want table-per-hierarchy
Can I get table-per-hierarchy without a base class?
I have defined a mapping against the interface, which included
<id name="id">
<generator class="native"/>
</id>
<discriminator type="string"/>
<version name="version"/>
And had the concrete mappings extend this. But of course this required getId, getVersion in the interface. This is what I'm trying to eliminate. Is there a way to achieve this?
thanks!
-barry
|