Sharing Our Passion for Technology
& Continuous Learning
< Back to Blog
Regarding JPA - is the EntityManager a DAO...
Do we really need ServiceInterface, ServiceImpl, DaoInterface, and DaoImpl? Or can we just say the EntityManager is the DAO, and blow away a generally unnecessary layer? On CRUD apps, 9x out of 10, the service layer is merely a pass-through to the DAO. Is there time to be saved here?