You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Nils Liebelt <ni...@candor.co.za> on 2004/12/29 18:21:48 UTC
Howto handle inheritance with an abstract classes
Hi,
I am struggling with a simple extend of an abstract class, trying to use
multiple joined tables.
I get following MetadataException: Can't create new base class object for
'za.co.ibn.datasolutions.entities.Contact'
A soon as I remove the abstract modifier everything works.
Here's my Repository:
<class-descriptor
class="za.co.ibn.datasolutions.entities.Contact"
table="Contact"
>
<field-descriptor
name="contactID"
column="contactID"
jdbc-type="INTEGER"
primarykey="true"
autoincrement="true"
>
</field-descriptor>
<field-descriptor
name="address"
column="address"
jdbc-type="VARCHAR"
length="254"
>
</field-descriptor>
</class-descriptor>
<class-descriptor
class="za.co.ibn.datasolutions.entities.Individual"
table="Individual"
>
<field-descriptor
name="contactID"
column="contactID"
jdbc-type="INTEGER"
primarykey="true"
autoincrement="true"
>
</field-descriptor>
<reference-descriptor
name="super"
class-ref="za.co.ibn.datasolutions.entities.Contact"
auto-retrieve="true"
auto-update="true"
auto-delete="true"
>
<foreignkey field-ref="contactID"/>
</reference-descriptor>
</class-descriptor>
It really don't know what else to try. Did everything according to the
advanced technique tutorial.
Thanks,
Nils
mtgglf
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org