• Post Reply Bookmark Topic Watch Topic
  • New Topic

Customer - Order relation

 
jerry mons
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FBN, like most business applications, contains the typical subsystems:
- product
- order
- customer
- payment.

The Order subsystem depends on the customer subsystem: an order refers to it's customer.

Currently my Customer subsystem is also depending on the Order subsystem:
a Customer has a list of orders.

Result: there is a bidirectional relationship between the Customer and Order subsystem.

Ideally, this would be a unidirectional relationship.
However, both relations seem reasonable to me:
- an order not referring to a customer at all seems a bit odd and
- having a customer subsystem that does not allow for getting a customer's orders seems too limiting.

I would appreciate your opinion on this.
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"peertje " please see your private messages for an important administrative matter.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!