Relationships with horizontally mapped inheritance
Relationships with horizontally mapped inheritance
- Subject: Relationships with horizontally mapped inheritance
- From: John Boynton <email@hidden>
- Date: Mon, 04 Aug 2003 18:47:03 -0600
Hi list,
I am considering using horizontal mapping to implement two types of
"BillableEntity": "Customer" and "Contractor". The application already
has a Customer entity, and I need to add the Contractor entity, which
can have subcontractors, and thus the need to bill to the contractor.
If I use horizontaly-mapped inheritance so that I have separate tables
for "Customer" and "Contractor", will EOF be able to be able to
transparently handle relationship joins to the different tables? For
example, I want to change the Invoice entity to have a "billTo"
relationship to BillableEntity instead of a "customer" relationship to
Customer so I can invoice contractors as well as customers. Can this be
done, or will I need to set up separate foreign keys and relationships
for Customer and Contractor in Invoice?
Thanks,
John
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.