Displaying 1 result from an estimated 1 matches for "productc".
Did you mean:
products
2006 Nov 22
1
Polymorphic Data Modelling Question
...mber of any given product. There are four products, each
in a different table because they have completely different
attributes. So I have:
Order
- has many LineItems
LineItem
- belongs to an Order
- holds the quantity of the particular product
- has one {ProductA or ProductB or ProductC or ProductD}
ProductA
- belongs to many LineItems
- holds various attributes unique to product A
ProductB
- belongs to many LineItems
- holds various attributes unique to product B
...etc for ProductC and ProductB
How do I set up LineItem so it is polymorphic with respect to the
p...