Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-776 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-776 Summary: key-many-to-one with multple columns Type: Bug Status: Open Priority: Blocker Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: XDoclet Components: Hibernate Module Versions: 1.2 Assignee: xdoclet-devel (Use for new issues) Reporter: Glen Schrader Created: Mon, 19 Jan 2004 12:44 PM Updated: Mon, 19 Jan 2004 12:44 PM Description: I need to be able to generate the following mapping: <composite-id name="comp_id" class="BlahXPK"> <key-property name="blahId" column="BLAH_ID" type="java.math.BigDecimal" length="20" /> <key-many-to-one name="parent" class="BlahParent" > <column name="BLAH_PARENT_X_ID" /> <column name="BLAH_PARENT_Y_ID" /> </key-many-to-one> </composite-id> So in order to do this I've changed the following in hibernate.xdt: <XDtMethod:ifHasMethodTag tagName="hibernate.many-to-one"> <key-many-to-one name="<XDtMethod:propertyName/>" class="<XDtMethod:methodTagValue tagName="hibernate.many-to-one" paramName="class" default="<XDtMethod:methodType/>" />" column="<XDtMethod:methodTagValue tagName="hibernate.many-to-one" paramName="column" default="<XDtMethod:propertyName/>"/>" /> </XDtMethod:ifHasMethodTag> to: <XDtMethod:ifHasMethodTag tagName="hibernate.many-to-one"> <key-many-to-one name="<XDtMethod:propertyName/>" class="<XDtMethod:methodTagValue tagName="hibernate.many-to-one" paramName="class" default="<XDtMethod:methodType/>" />" <XDtMethod:ifHasMethodTag tagName="hibernate.many-to-one" paramName="column"> column="<XDtMethod:methodTagValue tagName="hibernate.many-to-one" paramName="column" default="<XDtMethod:propertyName/>"/>" </XDtMethod:ifHasMethodTag> <XDtHibernate:setCurrentTag name="hibernate.many-to-one" mappingElement="key-many-to-one"> <XDtMerge:merge file="xdoclet/modules/hibernate/resources/hibernate-column.xdt"> </XDtMerge:merge> </XDtHibernate:setCurrentTag> </XDtMethod:ifHasMethodTag> This seems to create the correct mapping, I'm not sure if this correct way to approach this as I'm just starting to understand how the template files work. My guess is that it makes sense to call the hibernate-column.xdt in this situation. Also is the best way to submit a patch back to the xdoclet team? --------------------------------------------------------------------- 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 ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
