Are you using the 1.2.2 release? The 'role' attribute has been deprecated from Hibernate. Is the mapping for the Topic class available?
On 4/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I have a class Topic that has a collection of sub topics of the same > class. I want the parent to know about the collection of subtopics, but > the subtopics not to know about the parent topic. > > Public class Topic > ... > > /** > * @hibernate.set cascade="save-update" lazy="true" > * @hibernate.collection-key column="TOPIC_ID" > * @hibernate.collection-one-to-many class="Topic" > */ > public Set getSubTopics() > ... > > So I get > > <set role="subTopics" lazy="true" readonly="false" cascade="save-update" > sort="unsorted"> > <key column="TOPIC_ID"></key> > <one-to-many class="com.itmg.eventsystem.domain.research.Topic" /> > </set> > > But I cannot export to the database, I get a NullPointerException when > running schemaexport. > > Any help? > > Richard. > > ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id5hix _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user