sazanrjb / InventoryManagementSystem

A software developed using Java SE which provides as easy way to track the products, suppliers, customers as well as purchase and sales information. It also records the stock currently available in the store.
267 stars 138 forks source link

Solid: 2 Single Responsability Violations #8

Open DylanEscala opened 4 years ago

DylanEscala commented 4 years ago

First Violation: In the CustomerDAO clas i found a function which adds the class another responsability. the method ProductsName searchs all the products availables and shows its names. image Anothe Class should be created which consults the proudcts available. image image

Second Violation: In the class ProductDao i found the same method and 2 more mthods which broke the principle. The methods getSupplierCode and getSupplersInfo should be managed by another class. image image Another class Suppier should be created which controls those methods, and remove the ProductsName method should be removed. image image