Posts Tagged ‘Architecture’

Regarding JPA – is the EntityManager a DAO…

September 15th, 2009

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?