Thomas
-------- Original Message -------- Subject: Problems with "super" Date: Thu, 22 Jan 2004 13:29:41 -0500 From: Ankur Gupta <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED] --------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
