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;

}

and the DDL is:
CREATE TABLE PERSON (OID VARCHAR(8), MY_CREATOR VARCHAR(8), PRIMARY KEY(OID))



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to