Home  /  Questions  /  Question

50   50
Feb 10, 2016

DAO vs Repository

Hi there,

i have read a few posts on various sites about the DAO vs Repository pattern. I only use repository and also feel DAO it a little old fashioned now. 

While I understand are this is a valid pattern for demonstration, I was actually thinking DAO should be removed from the Patterns in Action project which I see a best practice example. 

Would welcome any feedback.

508   99.9
Feb 12, 2016
Yes, you bring up a good point. Repository is the more modern approach, but DAO is still fairly widely used. 
It is part of our TODO list to evolve Patterns in Action to reflect this new thinking. 

Thanks for asking a great question.