Java EE Architecture - Are DAO's still recommended when using an ORM like JPA 2?
问题 If I\'m using an ORM like JPA2 - where I have my entities that are mapped to my database, should I still be using a DAO? It seems like a lot more overhead. For example, I would need to maintain three extra packages: One that specifies my domain objects (which pretty much map my Entity objects): public class Employee { private String firstName; private String lastName; ... // Getters and setters } One that contains interfaces that specify my DAO methods public interface EmployeeDAO { public