hi, John, there is a workaround to your problem. you can map your class having a compaund rimary key without any relationships to other classes. but in the class implementation you can provide getters/setters for linked objects. yes, you have to find or load them manually, using a primary key.
Denis. ----- Original Message ----- From: "John McDonald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 30, 2003 8:12 PM Subject: Re: [castor-dev] Compound object identities > Thanks for your response. Does anyone know when this feature might be > implemented? Many of our tables have this design 'limitation'. > > Thanks. > > -john:m > > -----Original Message----- > From: Werner Guttmann [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 4:01 PM > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] Compound object identities > > > John, > > I am afraid this is not possible (yet), as there is a bug (or call it a > feature that never got implemented ... ;-)) that prevents you from > having FKs as part of multi-field identiy. > > Regards > Werner > > On Wed, 29 Jan 2003 17:34:30 -0800, John McDonald wrote: > > > Is this possible? > > > > <class name="com.itn.common.bizbeans.PurchaseOrderExtraServices" > > identity="extraServices purchaseOrder" > > > > > <map-to table="PurchaseOrder2_ExtraServices" > > xml="PurchaseOrderExtraServices" /> > > <cache-type type="none" /> > > > > <field name="price" type="double"> > > <sql name="price" type="numeric" /> > > <bind-xml name="price" node="element" /> > > </field> > > <field name="boToDivPrice" type="double"> > > <sql name="boToDivPrice" type="numeric" /> > > <bind-xml name="boToDivPrice" node="element" /> > > </field> > > <field name="addedFrom" type="string"> > > <sql name="addedFrom" type="varchar" /> > > <bind-xml name="addedFrom" node="element" /> > > </field> > > <field name="quantity" type="double"> > > <sql name="quantity" type="numeric" /> > > <bind-xml name="quantity" node="element" /> > > </field> > > <field name="extraServices" > > type="com.itn.common.bizbeans.ExtraServices"> > > <sql name="extraServicesID" /> > > <bind-xml name="ExtraServicesID" node="element" /> > > </field> > > <field name="purchaseOrder" > > type="com.itn.common.bizbeans.PurchaseOrder"> > > <sql name="purchaseOrderID" /> > > <bind-xml name="PurchaseOrder" node="element" /> > > </field> > > <field name="invoiceID" type="integer"> > > <sql name="invoiceID" type="numeric" /> > > <bind-xml name="invoiceID" node="element" /> > > </field> > > </class> > > > > > > The primary key on this table is extraServicesID & purchaseOrderID. How do > I > > use these when create this object.? The way I have shown above does not > seem > > to work. > > > > Thanks > > > > -john:m > > > > ----------------------------------------------------------- > > If you wish to unsubscribe from this mailing, send mail to > > [EMAIL PROTECTED] with a subject of: > > unsubscribe castor-dev > > > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
