Hi,
I have a question on data access. Why are DAOs (Data Access Objects) used to run queries against the database? I thought that this was the job of the Repository?
I am going through the Design Pattern Framework's MVC application. The controller calls the Repository and the Repository calls the Service. Then in the service a Data Access Objects are called to retrieve data Why is it done this way?
Am I missing something? Why is there a Repository Pattern?
Any comments would be appreciated.
Thanks.