[ http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1586?page=comments#action_17407 ]
Lukasz Michonski commented on XDT-1586: --------------------------------------- Here is the esential part of hibernate-properties.xdt: <XDtMethod:ifHasMethodTag tagName="hibernate.many-to-one"> <many-to-one name="<XDtMethod:propertyName/>" class="<XDtMethod:methodTagValue tagName="hibernate.many-to-one" paramName="class" default="<XDtMethod:methodType/>" />" cascade="<XDtMethod:methodTagValue tagName="hibernate.many-to-one" paramName="cascade" values="none,all,save-update,delete" default="none"/>" outer-join="<XDtMethod:methodTagValue tagName="hibernate.many-to-one" paramName="outer-join" values="true,false,auto" default="auto"/>" <XDtConfig:ifConfigParamGreaterOrEquals paramName="version" value="2.0"> update="<XDtMethod:methodTagValue tagName="hibernate.many-to-one" paramName="update" values="true,false" default="true"/>" insert="<XDtMethod:methodTagValue tagName="hibernate.many-to-one" paramName="insert" values="true,false" default="true"/>" <XDtMethod:ifHasMethodTag tagName="hibernate.many-to-one" paramName="access"> access="<XDtMethod:methodTagValue tagName="hibernate.many-to-one" paramName="access" default="property"/>" </XDtMethod:ifHasMethodTag> <XDtMethod:ifHasMethodTag tagName="hibernate.many-to-one" paramName="foreign-key"> foreign-key="<XDtMethod:methodTagValue tagName="hibernate.many-to-one" paramName="foreign-key"/>" </XDtMethod:ifHasMethodTag> <XDtMethod:ifHasMethodTag tagName="hibernate.many-to-one" paramName="property-ref"> property-ref="<XDtMethod:methodTagValue tagName="hibernate.many-to-one" paramName="property-ref"/>" </XDtMethod:ifHasMethodTag> <XDtMethod:ifHasMethodTag tagName="hibernate.many-to-one" paramName="unique"> unique="<XDtMethod:methodTagValue tagName="hibernate.many-to-one" paramName="unique" values="true,false"/>" </XDtMethod:ifHasMethodTag> </XDtConfig:ifConfigParamGreaterOrEquals> <XDtHibernate:setCurrentTag name="hibernate.many-to-one" mappingElement="many-to-one"> <XDtMerge:merge file="xdoclet/modules/hibernate/resources/hibernate-column.xdt"> </XDtMerge:merge> </XDtHibernate:setCurrentTag> </XDtMethod:ifHasMethodTag> and this statement must be removed: <XDtMethod:ifHasMethodTag tagName="hibernate.many-to-one" paramName="unique"> unique="<XDtMethod:methodTagValue tagName="hibernate.many-to-one" paramName="unique" values="true,false"/>" </XDtMethod:ifHasMethodTag> > unique attribute for many-to-one tag generates mapping file with double > unique attribute > ---------------------------------------------------------------------------------------- > > Key: XDT-1586 > URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1586 > Project: XDoclet > Type: Bug > Versions: 1.2.3 > Environment: Hibernate 3.0.5, Java 1.4.2_05, Xdoclet 1.2.3 > Reporter: Lukasz Michonski > Assignee: xdoclet-devel (Use for new issues) > > > /** > * @hibernate.many-to-one class = "TransactionStarter" column = "TS_ID" > unique = "true" > */ > public TransactionStarter getXxx(){ > return transactionStarter; > } > generates: > <many-to-one > name="xxx" > class="TransactionStarter" > cascade="none" > outer-join="auto" > update="true" > insert="true" > unique="true" > column="TS_ID" > unique="true" > /> -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel