The following comment has been added to this issue: Author: Andrew Stevens Created: Sat, 23 Jul 2005 4:57 AM Body: You mention Hibernate 3, but have you specified that in a "version" config parameter in the subtask?
The default version used by the subtask is "1.1"; in that version, according to the DTD, the attribute name should be "role". In 1.0 it was "name", and in 2.0 they went back to using "name" also. If you didn't specify that you're using version 3, then XDoclet is generating a perfectly correct 1.1 file... --------------------------------------------------------------------- View this comment: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1457?page=comments#action_17040 --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1457 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-1457 Summary: hibernate 3 set tag generates 'role' attribute Type: Bug Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: XDoclet Components: Hibernate Module Versions: 1.2 1.2.2 Assignee: xdoclet-devel (Use for new issues) Reporter: duane musser Created: Tue, 5 Jul 2005 10:50 AM Updated: Sat, 23 Jul 2005 4:57 AM Environment: fedora core 3, maven 1.0.2, /usr/java/jdk1.5.0/bin/java Description: with this (extract of the juicy part) code, i get the results listed below. I appologize for not looking in the code, or researching this more. However, it looks like a quick fix for someone who knows your code. code: /** * @hibernate.class table="registration" */ public class Registration implements Serializable { private Set chaperons; /** * @return Returns the chaperons. * @hibernate.set lazy="true" cascade="all" * @hibernate.collection-key column="registration_id" * @hibernate.collection-one-to-many class="ai.fssa.icssbm.objects.Chaperon" */ public Set getChaperons() { return chaperons; } /** * @param chaparons The chaperons to set. */ public void setChaperons(Set chaperons) { this.chaperons = chaperons; } } results: <set role="chaperons" lazy="true" readonly="false" cascade="all" sort="unsorted" > <key column="registration_id" > </key> <one-to-many class="ai.fssa.icssbm.objects.Chaperon" /> </set> I really believe "role" should be "name". --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel