Are named queries outside of your DAO layer bad?
Both Hibernate and JPA support named queries and I would typically recommend keeping them inside your DAOs. However, using a typesafe Generic DAO implementation, you can have one class support all of your CRUD operations, and use named queries to support finder methods. But this approach requires that your service/manager layer know your named queries […]
Read More
Recent Comments