• Post Reply Bookmark Topic Watch Topic
  • New Topic

Make Cade's class diagram

 
Joseph Zhou
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Make Cade's class diagram, there is an unidirectional association from Product to ProductCategories. if that is the case, how canwe make product search in the ProductCategories?
 
Ramon Gill
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think Product must contain a Product Category key, so the search can be done within Product.

Ray
 
Joseph Zhou
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ray,

Thanks a lot for your reply. I still not quite understand. usually, we search product(s) in categories, that means a category hold a set of product keys. if a product hold category keys, how can we make it useful?
 
Joseph Zhou
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any comments?
 
my overalls have superpowers - they repel people who think fashion is important. 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!