[EMAIL PROTECTED] wrote:

I expect to see....

        <composite-id
           name="vehicleServiceDetailPK"
           class="com.ashland.vioc.csw.dto.VehicleServiceDetailPK"
       >
                    <key-property
                       name="lineNum"
                       type="java.lang.Integer"
                       column="lineNum"
                       length="3"
               />

<key-many-to-one
name="vehicleServiceHeader"
class="com.ashland.vioc.csw.dto.VehicleServiceHeaderDTO"
<column name="vehSrvId" />
<column name="storeResourceId" />
</key-many-to-one>


       </composite-id>


Vibha Jindal Tata Consultancy Services Limited C - 56, Phase 2 Dist. Gautam Budh Nagar Noida - 201305,Uttar Pradesh India Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com


*Paul Galbraith <[EMAIL PROTECTED]>* Sent by: [EMAIL PROTECTED]

04/05/2005 01:53 AM
Please respond to
xdoclet-user@lists.sourceforge.net


To xdoclet-user@lists.sourceforge.net cc Subject [Xdoclet-user] Re: : Hibernate Composite key with multiple columns







[EMAIL PROTECTED] wrote:
 >
 > Hi,
 >
 > My key-many-to-one tag does not get generated properly when more than
 > one columns are involved.
 >

What do you expect to see generated in your hbm.xml?



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

ForwardSourceID:NT000090A2 Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you


I think that what you want to do is define @hibernate.many-to-one on each of the properties in the composite ID class, rather than defining multiple @hibernate.column attributes on the reference to the composite ID class.




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to