Hi,
I have 2 questions about using xdoclet with hibernate:
1. How can I use xdoclet to generate the "hibernate.cfg.xml" file?
2. How to generate the column mapping for id in my <class>.cfg.xml file, like this in the hibernate 'Cat' example:
<id name="id" type="string" unsaved-value="null" >
<column name="CAT_ID" sql-type="char(32)" not-null="true"/>
<generator class="uuid.hex"/>
</id>
I try putting in the xdoclet tag in my Cat.java, but the column mapping does not generate
/* @hibernate.id generator-class="uuid.hex" column="CAT_ID" unsaved-value="null"
* @hibernate.column name="CAT_ID" sql-type="char(32)" not-null="true" <-- this is missing.
*/
this is what I get in the generated Cat.cfg.xml file (there is no 'column' children under 'id'):
<id
name="id"
column="CAT_ID"
type="java.lang.String"
unsaved-value="null"
>
<generator class="uuid.hex">
</generator>
</id>
Thanks for any tips.
