Hi,
I’m using ME 4.1M2 on windows XP with JDK 1.5.0_05 and eclipse 3.1.1 (build M20050929-0840). Eclipse and ME are fresh install.
I started using xdoclet to manage my hibernate mapping files. Everything is ok except when I declare a list like this :
/**
*
* @hibernate.list cascade="all"
* @hibernate.collection-key
* column="TEACHERID"
* @hibernate.collection-index
* column="ind"
* @hibernate.collection-one-to-many
* class="edu.essec.pwp.bean.Diploma"
*/
With this I obtain a strange entry in my hibernate mapping file :
<list
role="diplomas"
lazy="false"
cascade="all"
>
<key
column="TEACHERID"
>
</key>
<index
column="ind"
/>
<one-to-many
class="edu.essec.pwp.bean.Diploma"
/>
</list>
The tag list has a “role” attribute instead of “name”. As the role attribute doesn’t exist in hibernate dtd I wonder where does it come from.
When I change role to name in my mapping file, everything is ok and my app works perfectly.
Any clue ?
Antoine