Joined: Tue Aug 12, 2008 3:47 pm Posts: 2 Location: Sweden
|
Is it possible to map a one-to-many relation differently but using the same class.
For example,
Customer
SendOrders (bag of the class Order)
ReceivedOrders (also a bag of the class Order)
The distinction between if an Order is Send or Received could be that they have two different tables or an column in the same table that describes the state of the order. (state [0, 1] or something).
How/could this be done?
It seems like it would be unnecessary to make cloned class to achieve this. Also it would be great to handle this in an easy way when an order changes state (by copying).
|
|