Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3
I have the following xdoclet in my POJO and I'd like to create the mapping file to include such info, but the generated mapping file missed the attribute name.
My xdoclet:
* @hibernate.id
* generator-class="util.AutoNumberFactory"
* type="java.lang.Integer"
* column="MyColumn"
*
* @hibernate.generator-param
* name="key"
* value="fruits"
Generated mapping file is:
<id
name="id"
column="MyColumn"
type="java.lang.Integer"
>
<generator class="util.AutoNumberFactory">
<param>fruits</param>
<!--
To add non XDoclet generator parameters, create a file named
hibernate-generator-params-blah.xml
containing the additional parameters and place it in your merge dir.
-->
</generator>
</id>
The correct param line should be:
<param name="key">fruits</param>
The "key" attribute is missing. Is this a bug or I did something wrong here?
Thanks.