Cl�vis Wichoski wrote:
Hi,
I'm attempting to map a reference to same class using XDoclet, but I'm geting the Exception on build:
xdoclet.XDocletException: The class Person referenced by myCreator in class Person is not persistent
Maybe this is a Bug or there is another way to map references to same class?
follow are the way that I'm mapping:
/** * @ojb.class table="PERSON" * @ojb.field name="myCreatorOid" * column="MY_CREATOR" * jdbc-type="VARCHAR" */ public class Person { /** * @ojb.field column="OID" * length="8" * primarykey="true" **/ public String oid;
/** * @ojb.reference foreignkey="myCreatorOid" */ Person myCreator;
}
I just added a testcase that mimics your scenario, and it passes without problems. Which version of the xdoclet ojb module do you use ? Please try with the CVS version, you can get the three jars - xdoclet, xjavadoc, xdoclet-ojb-module, from the CVS view on the OJB website.
Tom
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
