Hi, I'm trying to map inheritance to multiple joined tables, but something is going wrong. It inserts ok, but when loading, it materializes the superclass, instead of subclass. Important: 1) I am NOT using extents; 2) I am not declaring attributes (_id, in this case, which is is primary key and serves also as foreign key) in the subclass in the object model. 3) I have tried the anonymous field approach, but it materializes the superclass too.
I believe I am facing a configuration mistake, so these are the class-descriptors: <!--SUPERCLASS --> <class-descriptor class="com.jma.interescola.core.User" table="user_1"> <field-descriptor id="1" name="_id" column="id" jdbc-type="INTEGER" primarykey="true" autoincrement="true"/> <field-descriptor id="2" name="_name" column="name" jdbc-type="VARCHAR"/> </class-descriptor> <!--SUBLASS --> <class-descriptor class="com.jma.interescola.core.Student" table="student"> <field-descriptor id="1" name="_id" column="id" jdbc-type="INTEGER" primarykey="true" autoincrement="true"/> <reference-descriptor auto-retrieve="true" auto-update="true" auto-delete="true" name="super" class-ref="com.jma.interescola.core.User"> <foreignkey field-ref="_id"/> </reference-descriptor> </class-descriptor> Please, any help or suggestion would be great. If this is a bug, anyone knows if the release rc5 fixed it? Thank you.
