I am trying to map a set of components in hibernate and it should like
the following at the end:

<set name="ethnicity" table="oa_applicant_eth">
   <key column="applicant_id" />
   <composite-element class="Applicant">

        <parent name="applicant" />

      <many-to-one name="ethnicity" class="Ethnicity" />
      <property name="otherEthnicity" column="other_eth" />
   </composite-element>
</set>

I am using the following method meta tags:

@hibernate.set table="oa_applicant_eth"
@hibernate.collection-key column="applicant_id"
@hibernate.collection-composite-element class="ApplicantEthnicity"

on my Applicant object's getEthnicity method. My relation is
bidirectional though, but the meta tags above would not generate

 <parent name="applicant" />

Does anyone know what I need to do to generate it?

Thanks,
Alex.



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to