0 Replies Latest reply on May 14, 2004 9:02 AM by itchyoinker

    XDoclet faulty?

    itchyoinker Newbie

      Hello,

      I'm trying to run the [hibernatedoclet] task from a build script . However, the XDoclet doesn't parse my Hibernate file. This should be simple, but I've been working on this for several weeks with no success. Have read most available tutorials and online instructions on the topic, but am mainly using http://www.hibernate.org/66.html. There is no output other than the target name 'xdoclet:' in the command window. Can anyone tell me what the possible causes might be?



      path id="xdoclet.classpath"
      fileset dir="F:\XDoclet121\lib"
      include name="*.jar"/
      /fileset
      /path

      taskdef
      name="hibernatedoclet"
      classname="xdoclet.modules.hibernate.HibernateDocletTask"
      classpath refid="xdoclet.classpath"/
      /taskdef

      hibernatedoclet
      destdir="${build.mappings}"
      excludedtags="@version,@author,@todo"
      force="true"
      verbose="true"
      mergedir="${build.mappings}">

      fileset dir="${src.hibernate}"
      include name="*.java"/
      /fileset

      hibernate version="2.0"/
      /hibernatedoclet





      HERE IS THE CLASS.

      package com.kemaiev.jzudi.hibernate;

      import java.io.Serializable;
      import com.kemaiev.jzudi.Company;

      /** A business entity class representing a Company.
      *
      * @author Itchy
      * @hibernate.class table="COMPANY"
      */
      public class CompanyHibernateImpl implements Company, Serializable{
      private Long companyID;
      private String description;
      private String companyName;
      private String contact;
      private String street;
      private String zip;
      private String city;
      private String telephone;
      private String telefax;


      /** The default constructor for Hibernate to instantiate with.*/
      public CompanyHibernateImpl(){
      }



      /**
      * hibernate.id generator-class="sequence"
      * column="COMPANY_ID"
      *
      */
      public Long getCompanyID() {
      return (CompanyID);
      }
      public void setCompanyID(Long long1) {
      companyID = long1;
      }



      /**
      *@hibernate.property column="DESCRIPTION"
      *
      */
      public String getDescription() {
      return (description);
      }
      public void setDescription(String string) {
      description = string;
      }






      /**
      * @hibernate.property column="COMPANY_NAME"
      *
      */
      public String getCompanyName() {
      return (companyName);
      }
      public void setCompanyName(String string) {
      companyName = string;
      }





      /**
      * @hibernate.property column="CONTACT"
      *
      */
      public String getContact() {
      return (contact);
      }
      public void setContact(String string) {
      contact = string;
      }




      /**
      * @hibernate.property column="STREET"
      *
      */
      public String getStreet() {
      return (street);
      }
      public void setStreet(String string) {
      street = string;
      }




      /**
      * @hibernate.property column="ZIP"
      *
      */
      public String getZIP() {
      return (zip);
      }
      public void setZIP(String string) {
      zip = string;
      }




      /**
      * @hibernate.property column="CITY"
      *
      */
      public String getCity() {
      return (city);
      }
      public void setCity(String string) {
      city = string;
      }



      /**
      * @hibernate.property column="TELEPHONE"
      *
      */
      public String getTelephone() {
      return (telephone);
      }
      public void setTelephone(String string) {
      telephone = string;
      }



      /**
      * @hibernate.property column="TELEFAX"
      *
      */
      public String getTelefax() {
      return (telefax);
      }
      public void setTelefax(String string) {
      telefax = string;
      }

      }