Oops there is a typo in my post

the line 
>    <composite-element class="Applicant">
is actually
>    <composite-element class="ApplicantEthnicity">

I was just trimming my code down for the post and trimmed too much :-)

Alex.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:xdoclet-user-
> [EMAIL PROTECTED] On Behalf Of Alex Shneyderman
> Sent: Thursday, August 05, 2004 2:19 PM
> To: [EMAIL PROTECTED]
> Subject: [Xdoclet-user] Hibernate set of components - how to generate
> parent element?
> 
> 
> 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



-------------------------------------------------------
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