79119605

Date: 2024-10-23 20:28:53
Score: 3
Natty:
Report link

Repository and DAO Patterns may cohesist, and as you already did, Repository istances will use DAO implementations for CRUD DB operations.

However, "it depends", as usual; I suggest you to read some articles on the web to make your own opionion on this usage, relying on the complexity of your domain and application.

A first starting point can be this https://www.baeldung.com/java-dao-vs-repository and this What is the difference between DAO and Repository patterns?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Francesco Poli