Re: Relationships with horizontally mapped inheritance
Re: Relationships with horizontally mapped inheritance
- Subject: Re: Relationships with horizontally mapped inheritance
- From: Chuck Hill <email@hidden>
- Date: Mon, 04 Aug 2003 22:24:00 -0700
This will work fine in terms of EOF and Java inheritance. What won't work
fine is the foreign key relationships from Invoice to BillableEntity (there
being no row in that table corresponding to the key). I don't recall if
EOModeler still generates the FK constraint in this case (it used to), but
it if does you will have to manually drop it. Other than that it should be
smooth sailing.
Chuck
At 06:47 PM 04/08/2003 -0600, John Boynton wrote:
>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.
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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.