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

Reply via email to