On Fri, 2003-10-24 at 09:34, [EMAIL PROTECTED] wrote:
> I have the following xdoclet attributes in a java bean for the id property.
> 
> * @hibernate.id
> *  generator-class="sequence"
> *  generator-parameter-1="SQL_SEQUENCE_NAME"
> 
> the associated xdoclet output is the following:
> 
>             <generator class="sequence">
>                 <param>SQL_SEQUENCE_NAME</param>
>             </generator>
> 
> Unfortunately I do not know how to specify the crutial name attribute by
> means of xdoclet attributes in order to get the desired result:
> 
>             <generator class="sequence">
>                 <param name="sequence">SQL_SEQUENCE_NAME</param>
>             </generator>
> 
> Does anybody know how to do that?

I've never done it myself so I may be completely wrong, but the template
has

            <generator class="<XDtMethod:methodTagValue
tagName="hibernate.id" paramName="generator-class" />">
              <XDtMethod:forAllMethodTags
tagName="hibernate.generator-param" >
                <param<XDtConfig:ifConfigParamEquals paramName="version"
value="2.0"> name="<XDtMethod:methodTagValue
tagName="hibernate.generator-param" paramName="name"
/>"</XDtConfig:ifConfigParamEquals>><XDtMethod:methodTagValue
tagName="hibernate.generator-param" paramName="value" /></param>
...

so at a guess, I'd say you need to use a

@hibernate.generator-param name="sequence" value="SQL_SEQUENCE_NAME"

tag on the method (and have specified the config parameter for the
target Hibernate version as "2.0") instead of your generator-parameter-1
parameter.


Andrew.



-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to