[jira] Commented: (XDP-227) hibernate.bag : name is an invalid parameter name

LAL Jérémy (JIRA) <jira-yCVjj/[email protected]> Tue, 18 Mar 2008 04:37:46 -0500 (CDT)
Newsgroups gmane.comp.java.xdoclet-plugins
Message-ID <2114192.1205833066166.JavaMail.haus-jira@codehaus01.managed.contegix.com>
    [ http://jira.codehaus.org/browse/XDP-227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_127717 ] 

LAL Jérémy commented on XDP-227:
--------------------------------

to be more precise the bag annotations were :
/**

	 * Returns the list of testFieldValues dependent on locale.

	 *

	 * @return list of CFVs

	 * @hibernate.bag name="testFieldValues" inverse="true" lazy="true" cascade="delete" outer-join="false"

	 * @hibernate.key column="`field_id`"

	 * @hibernate.one-to-many class="com.Value"

	 */

	public List getTestFieldValues() {

		return testFieldValues;

	}

> 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
>            Assignee: Konstantin Pribluda
>             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/