Regular |
|
Joined: Fri Feb 03, 2006 5:28 pm Posts: 73 Location: Québec, QC, Canada
|
Hi,
I have an order class which has a collection of OrderItem.
OrderItem has property such as Quantity, PriceSnapShot and a property of type CatalogItem which refer to an item.
So a CategoryItem can be in many OrderItem
and an OrderItem have one and exactly one CategoryItem.
It makes sense to add a many-to-one element in my OrderItem mapping file, right?
but do I have to put a bag element in my CategoryItem if I don't need to navigate from a CatalogItem to my OrderItem?
Thanks.
|
|