Leonardo R Nunes wrote:
How can I create a XDoclet for the following part of my .hbm ?
...
<bag
name="foo"
lazy="true"
inverse="true"
cascade="none"
>
<key>
<column name="PART1_ID" />
<column name="PART2_ID" />
</key>
<one-to-many
class="FooClass"
/>
</bag>
...
I tried the following xdoclet tags, but it didn't work:
/**
* @hibernate.bag
* lazy="true"
* inverse="true"
* cascade="none"
* @hibernate.collection-key
* column="PART1_ID"
* @hibernate.collection-key
* column="PART2_ID"
* @hibernate.collection-one-to-many
* class="FooClass"
*
*/
public List getFoo() {
...
Try the @hibernate.collection-key-column tag.
-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user