GeeCON Prague 2014*
The moose likes OO, Patterns, UML and Refactoring and the fly likes What entity product expiry date should be in with a pos system? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "What entity product expiry date should be in with a pos system?" Watch "What entity product expiry date should be in with a pos system?" New topic
Author

What entity product expiry date should be in with a pos system?

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 600
The product warranty expiry date should follow product.
But the product entity stores the information of the product itself.
The expiry date is dynamic. If I store it in order_details, it follows an order,
Not by item, where should I store it?
Thanks
Jack
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4477
    
    6

It depends. Does each instance/unit of a Product have a unique expiration date or do multiple instances/units of a product have the same expiration date such as with things that can be grouped in a Batch like medicine, eggs, or milk for example. You probably need to make a distinction between information that is specific to each instance/unit (or number of instances/units) of a Product and the general information that applies to ALL instances.

Junilu - [How to Ask Questions] [How to Answer Questions]
 
GeeCON Prague 2014
 
subject: What entity product expiry date should be in with a pos system?