David Zejda wrote:

The classes I sent you yesterday don't go through the xdoclet succesfully
although I'm using the newly downloaded jars.
But maybe I have the bad jars? - their sfv checksum is in attachment.

Well, yes, you have to modify them so that the interface declares the PK and ojbConcreteClass:

/**
* @ojb.class table="AGREEMENT_HIERARCHY"
*/
public interface Agreement
{
   /**
    * @ojb.field autoincrement="ojb"
    *            primarykey="true"
    */
   public Integer getId();

   /**
    * @ojb.field nullable="false"
    *            column="CLASS_NAME"
    *            length="128"
    */
   public String getOjbConcreteClass();

   public String getTitle();
}

/**
* @ojb.class table="AGREEMENT_HIERARCHY"
*/
public abstract class AbstractAgreement implements Agreement
{
   /**
    * Artificial ID key holder
    */
   private Integer id;

   protected String ojbConcreteClass = this.getClass().getName();

/**
* Holds value of property title.
*
* @ojb.field nullable="false"
* length="254"
*/
private String title;
/**
* Creates _invalid_ instance
* Behavior will be unpredictable until properties are filled.
*/
protected AbstractAgreement()
{
}


   public Integer getId()
   {
       return id;
   }

   public String getOjbConcreteClass()
   {
       return ojbConcreteClass;
   }

   /**
    * Getter for property title.
    * @return Value of property title.
    */
   public String getTitle()
   {
       return this.title;
   }
}

Tom


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



Reply via email to