Just to make my own statement more specific: the problem I am refering
to relates to queries only. Iow, at the moment is is not possible to
query for objects with a multi-key identity where one or more of the
fields is a primary key. You might still be able to achieve what you
originally highlighted.
As to your problem, can you identify the problems you are seeing ? Iow,
do you get stack traces or some other errosrs ?
Regards
Werner
On Thu, 30 Jan 2003 16:01:26 -0800, Werner Guttmann wrote:
> 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