Dear Collegues; I have a hibernate xdoclet build based upon the example in Chapter 7 of "XDoclet in Action". I have a class called ems.hibernate.HibernateCompany that fails saying that ther is a missing ID property. Here is the source for the HibernateCompany class:
__________________________ package ems.hibernate; import java.util.Set; /** * @hibernate.class * table="HibernateCompany" * * * Author : John Olmstead * Date: Jul 27, 2004 * Time: 8:52:02 AM * To change this template use Options | File Templates. */ public class HibernateCompany { private Integer id; private String companyName; private String companyStatus; private Set servers; public HibernateCompany() {} /* * @hibernate.id * generator-class = "uuid.Integer" */ public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } /* * @hibernate.property */ public String getCompanyName() { return companyName; } public void setCompanyName(String companyName) { this.companyName = companyName; } /* * @hibernate.property */ public String getCompanyStatus() { return companyStatus; } public void setCompanyStatus(String companyStatus) { this.companyStatus = companyStatus; } /* * @hibernate.set * lazy="true" * cascade="all" * * @hibernate.collection-one-to-many * class="ems.hibernate.HibernateServer" * * @hibernate.collection-key * column="companyNumber" */ public Set getServers() { return servers; } public void setServers(Set servers) { this.servers = servers; } } ____________________________________________________ Here is the target of the build file I'm using to try and build the hbm file: <target name="generate-hibernate" depends="init" description="Generates hibernate hbm files"> <taskdef name="hibernatedoclet" classname="xdoclet.modules.hibernate.HibernateDocletTask" classpathref="classpath" /> <hibernatedoclet destdir="${gen.src}/hbm" mergeDir="${merge.dir}"> <fileset dir="${src.dir}" > <include name="**/HibernateCompany.java" /> </fileset> <hibernate version="2.0" /> </hibernatedoclet> </target> ____________________________________________ The XDoclet Build fails complaining that the HibernateCompany source does not have an id property. Any help understanding and correcting this problem is appreciated. John Olmstead DBAdirect [EMAIL PROTECTED] ===== John Olmstead [EMAIL PROTECTED] __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user