I'm trying to learn about learn about the DAO/DTO design pattern, but I'm having trouble understanding why I need both of them. From what i've seen, they both kind of do crud operations. I really don't understand why I need both of them, or how to use them together with the model class. (I need to use both)
So let's say I have an Employee table
I would need an Employee Class, an EmployeeDAO class, and a EmployeeDTO class. How would this work exactly?
Aucun commentaire:
Enregistrer un commentaire