Use DAO pattern for class naming for DAOs #3515
iliyan-velichkov
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I'm converting this issue into discussion, as there are different opinions which term is the more appropriate one. As @delchev commented: Comparing the Two Patterns
Also, if we have an anemic domain, the repository will be just a DAO. Additionally, the repository pattern encourages a domain-driven design, providing an easy understanding of the data structure for non-technical team members, too. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, all DAOs are named *Repository for example LanguageRepository.
I think will be better if they are *DAO like LanguageDAO.
DAO is more widely used. Repository is something spring specific.
Examples:

Beta Was this translation helpful? Give feedback.
All reactions