sorry for the re-post, but still experiencing the below exception:
org.exolab.castor.jdo.DatabaseNotFoundException: Nested error:
org.exolab.castor.mapping.MappingException: No class descriptor found for
extended class org.exolab.castor.mapping.xml.ClassMapping@60991f in class
prj.persistence.entity.customer.castor.Customer -- forward references are
not supported
i'm trying to use castor with a class that extends another class. the
parent class has a castor mapping and works fine. castor doesn't seem to
like something about the child class mapping.
based on the above exception, can anyone please recommend what i should
check? the relevant parts of the mapping.xml file are below.
thank you.
(sorry the formatting is so bad. i'm working on a new castor module for
xdoclet to auto-generate the mapping.xml file based on @tags in my .java
entity files.)
PARENT CLASS:
<!-- =================================================================== -->
<!-- Mapping for class prj.persistence.entity.user.castor.User_Castor -->
<!-- =================================================================== -->
<class name="prj.persistence.entity.user.castor.User_Castor"
identity="id"
access="shared"
key-generator="UUID"
auto-complete="false">
<map-to
table="usr"
/>
<cache-type
type="count-limited"
/>
<field name="id"
type="java.lang.String"
required="true"
>
<sql name="id"
/>
</field>
<field name="loginId"
type="java.lang.String"
required="true"
>
<sql name="loginId"
/>
</field>
<field name="pw"
type="java.lang.String"
required="true"
>
<sql name="pw"
/>
</field>
</class>
CHILD CLASS:
* note: it is understood that the mapping for this entity does not need to
include
the fields "loginId" and "pw" from the PARENT CLASS. however, removing
those fields from the below definition still resulted in the same error.
<!-- =================================================================== -->
<!-- Mapping for class
prj.persistence.entity.customer.castor.Customer_Castor -->
<!-- =================================================================== -->
<class name="prj.persistence.entity.customer.castor.Customer_Castor"
identity="id"
access="shared"
extends="prj.persistence.entity.user.castor.User_Castor"
key-generator="UUID"
auto-complete="false">
<map-to
table="customer"
/>
<cache-type
type="count-limited"
/>
<field name="activeCountry"
type="prj.persistence.entity.country.castor.Country_Castor"
>
<sql name="activeCountry_id"
/>
</field>
<field name="id"
type="java.lang.String"
required="true"
>
<sql name="id"
/>
</field>
<field name="loginId"
type="java.lang.String"
required="true"
>
<sql name="loginId"
/>
</field>
<field name="pw"
type="java.lang.String"
required="true"
>
<sql name="pw"
/>
</field>
</class>
REFERENCED BY THE CHILD CLASS:
<!-- =================================================================== -->
<!-- Mapping for class
prj.persistence.entity.country.castor.Country_Castor -->
<!-- =================================================================== -->
<class name="prj.persistence.entity.country.castor.Country_Castor"
identity="id"
access="read-only"
auto-complete="false">
<map-to
table="country"
/>
<cache-type
type="count-limited"
/>
<field name="id"
type="java.lang.String"
required="true"
>
<sql name="id"
/>
</field>
<field name="name"
type="java.lang.String"
required="true"
>
<sql name="name"
/>
</field>
</class>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev