The xdt file seems to suggest otherwise:
<XDtMethod:forAllMethodTags tagName="hibernate.collection-key-column">
It wouldn't be doing a forAll if there weren't allowed to be more than one.
There was actually an error in what I was trying to achieve previously. It
should be:
<set name="sections"
table="ZrRdRptTxt"
sort="au.gov.sa.health.oacis.hibernate.ZrRdRptTxtComparator"
inverse="true"
lazy="true">
<key>
<column name="SID"/>
<column name="seqNum"/>
</key>
<one-to-many
class="au.gov.sa.health.oacis.hibernate.ZrRdRptTxt"/>
</set>
> -----Original Message-----
> From: Charlie Kelly [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 18 August 2004 14:20
> To: [EMAIL PROTECTED]
> Subject: Re: [Xdoclet-user] hibernate.collection-key-column
>
> I'm not sure, but I don't think you can use
>
> @hibernate.collection-key-column name=
>
> twice.
>
> Charlie
>
>
> Kelley, Peter (HEALTH) wrote:
>
> >I seem to be having some trouble getting this to work. The code:
> >
> > /**
> > * Getter for property sections.
> > * @hibernate.set
> > * table="ZrRdRpt"
> > * sort="au.gov.sa.health.oacis.hibernate.ZrRdRptComparator"
> > * inverse="true"
> > * lazy="true"
> > * @hibernate.collection-one-to-many
> > * class="au.gov.sa.health.oacis.hibernate.ZrRdRpt"
> > * @hibernate.collection-key-column name="SID"
> > * @hibernate.collection-key-column name="seqNum"
> > * @return the value of field sections
> > */
> >
> >Produces the following:
> > <set
> > name="sections"
> > table="ZrRdRpt"
> > lazy="true"
> > inverse="true"
> > cascade="none"
> > sort="au.gov.sa.health.oacis.hibernate.ZrRdRptComparator"
> > >
> >
> > <one-to-many
> > class="au.gov.sa.health.oacis.hibernate.ZrRdRpt"
> > />
> > </set>
> >
> >instead of something like:
> >
> > <set name="sections"
> > table="ZrRdRptTxt"
> > sort="au.gov.sa.health.oacis.hibernate.ZrRdRptTxtComparator"
> > inverse="true"
> > lazy="true">
> > <key column="SID"/>
> > <key column="seqNum"/>
> > <one-to-many
> >class="au.gov.sa.health.oacis.hibernate.ZrRdRptTxt"/>
> > </set>
> >
> >which is what I want.
> >
> >Can anyone suggest what I might be doing wrong? Looking at the templates
> it
> >appears as if you need an @hibernate.collection-key element as well but
> this
> >doesn't seem to work. Does anyone have this working?
> >
> >Regards,
> >Peter Kelley
> >
> >
> >
> >-------------------------------------------------------
> >SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> >100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> >Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> >http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> >_______________________________________________
> >xdoclet-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> >
> >
> >
> >
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user