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.
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.
Anothe Class should be created which consults the proudcts available.
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.
Another class Suppier should be created which controls those methods, and remove the ProductsName method should be removed.
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. Anothe Class should be created which consults the proudcts available.
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. Another class Suppier should be created which controls those methods, and remove the ProductsName method should be removed.