[ http://jira.codehaus.org/browse/XDP-227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_127696 ]
Konstantin Pribluda commented on XDP-227: ----------------------------------------- Tags have changed form XD1 times - now they are smart and know which parameters they have to accept ( and also whoch values ) See documentation of tag in question: http://xdoclet.codehaus.org/HibernateTags#HibernateTags-hibernate.bag "property.name" in jelly refers to java bean property name, not tag parameter. So this is not bug, but feature ;) > hibernate.bag : name is an invalid parameter name > ------------------------------------------------- > > Key: XDP-227 > URL: http://jira.codehaus.org/browse/XDP-227 > Project: XDoclet 2 Plugins > Issue Type: Bug > Components: hibernate > Affects Versions: 1.0.5, 1.0.4 > Environment: linux debian sid, java 1.6 sun, compiling using ANT, > target hibernate 3.0 > Reporter: LAL Jérémy > Fix For: 1.0.4 > > > Hello, i'm currently struggling to migrate from xdoclet to xdoclet 2... > Please note i'm using xdoclet 2.0.7 as version 2.0.6 would not expand > properties using ant tasks. > Now i get this error : > _____ > java.lang.RuntimeException: @hibernate.bag name="testFieldValues" > inverse="true" lazy="true" cascade="delete" outer-join="false" > in com.app.Content (line 235): > name is an invalid parameter name. > _____ > i really don't understand why, because the corresponding Bag.jelly does > define name (perhaps wrongly) : > _____ > <j:jelly xmlns:j="jelly:core"> > <j:set var="bagTag" > value="${property.entity.getTagByName('hibernate.bag')}"/> > <j:if test="${bagTag != null}"> > <bag > name="${property.name}" > access="${property.access}" > table="${bagTag.table}" > ... > _____ > But generated HibernateBagTagImpl.java does not define "name" in the > ALLOWED_PARAMETERS list, > whereas the similarly defined "access" attribute is in the list. > I reproduce the bug with the latest 1.0.4 release i just downloaded, and also > with the current svn. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ xdoclet-plugins-interest mailing list xdoclet-plugins-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest