Claudio Romano wrote:
Thanx,

this is what i currenty doing, i just hopped for reference-descriptor in product solution. So i
could get easier the products specials in my
product, as i now that there is only one special
per product.



To use a reference-descriptor in Product (1:1 relation to Special) you need a FK to Special in Product table (special_id).


regards,
Armin

Claudio



-----Original Message-----
From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Friday, August 06, 2004 10:58 AM
To: OJB Users List
Subject: Re: ReferenceDescriptor



Claudio Romano wrote:

If i have a Product associated 1:1 with an Special and it

is modeled in the

db such that the special table has a product_id (not

primarykey!)... is

there a way to map the Special with a ReferenceDescriptor

in to the Product?

well this sounds as Product has a 1:n relation with Special, because Special has an Product FK (product_id) and the Special has an 1:1 relation to Product. The FK 'product_id' have to represent the PK of Product.
So you can declare a collection-descriptor in Product and an reference-descriptor in Special.


regards,
Armin


thx
Claudio




---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to