I am developing an application that should establish a connection to the database. To work through this connection, I use the DAO pattern. My question is related to the organization of the code and the name of the interfaces and implementations. The current package structure is as follows:
- mainpackage
- mainpackage.model β Models of each table for creating objects with data from DB
- mainpackage.persistence β ConnectionManager
- mainpackage.persistence.dao β Interfaces and Implementations
I thought about naming interfaces that it would be nice to use something like ClassDAO and DefaultClassDAO for implementation, since I donβt know what to name it. What do you think? Is there any agreement for this?
source share