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 Thomas Mahler <th...@web.de> on 2004/01/23 07:43:13 UTC

[Fwd: Problems with "super"]

forwarded you question to the ojb user list.

Thomas

-------- Original Message --------
Subject: Problems with "super"
Date: Thu, 22 Jan 2004 13:29:41 -0500
From: Ankur Gupta <an...@coreconcept.com>
To: <th...@apache.org>

Hello Thomas,

I have been having some problems using "super" to map an inheritance
hierarchy. Seems like ojb isn't treating the reference descriptor as a
special tag. I keep getting the following error:

"Can't find member super in com.cci.model.pharma.impl.AOMObjectImpl...."

The repository XML looks like this:

   <!-- Mapping for Class com.cci.model.pharma.impl.AOMElementImpl -->
   <class-descriptor
     class="com.cci.model.pharma.impl.AOMElementImpl"
     table="AOMElement"
   >
       <field-descriptor
         name="id"
         column="id"
         jdbc-type="VARCHAR"
         primarykey="true"
         access="readwrite"
       />
       <field-descriptor
         name="name"
         column="name"
         jdbc-type="VARCHAR"
         access="readwrite"
       />
   </class-descriptor>

   <!-- Mapping for Class com.cci.model.pharma.impl.AOMObjectImpl -->
   <class-descriptor
     class="com.cci.model.pharma.impl.AOMObjectImpl"
     table="AOMObject"
   >
       <field-descriptor
         name="id"
         column="id"
         jdbc-type="VARCHAR"
         primarykey="true"
         access="readwrite"
       />
       <reference-descriptor
         name="super"
         class-ref="com.cci.model.pharma.impl.AOMElementImpl"
         refresh="true"
       >
         <foreignkey field-ref="id"/>
       </reference-descriptor>
   </class-descriptor>

Please let me know if I am overlooking something.

Regards,

------------------------------------
Ankur Gupta
Core Concept Inc.
1000 Abernathy Road
Building 400, Suite 1010
Atlanta, GA 30328
p: 678-731-0000 x 406
c: 678-478-3777
e: ankur.gupta@coreconcept.com
--------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org