Hello,
I'm using the "table per class hierarchy" strategy. I have a strange question about inherited properties. It's a long explanation as to WHY I want to do this, but the question itself is straightforward:
Can I override ride a property in a subclass's mapping with a DIFFERENT column name than it's superclass?
For example:
[class:Animal]
<property name="color" column="COLOR1"/>
[subclass:Dog]
<property name="color" column="COLOR2"/>
[subclass:Cat]
<property name="color" column="COLOR3"/>
Does anyone know if:
1) this will work at all,
2) if queries on the subclasses for the "color" property work as expected.. pulling from COLOR1, COLOR2, COLOR3 depending on the row/subclass?
I understand there is no apparent reason for wanting to do this, but I have a very odd cirumstance to deal with! :)
Thanks,
Ryan
|