Question: what is the difference between repository and dao?
Answer: The key difference is that a repository handles the access to the aggregate roots in a an aggregate, while DAO handles the access to entities. ... DAO provides abstraction on database/data files or any other persistence mechanism so that, persistence layer could be manipulated without knowing its implementation details.