Announcement Announcement Module
Collapse
No announcement yet.
Good example of JPA generic DAO without using JPATemplate? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Good example of JPA generic DAO without using JPATemplate?

    I've read this article:

    http://www.ibm.com/developerworks/ja...enericdao.html

    many times and believe I understand what it is saying. However, it is 4 years old and I have a JPA compliant Java application to contend with now. In addition, I see that there is a JPATemplate in Spring that has some good functionality, but the Spring documentation says it is already deprecated!

    Can anybody point me to an example of a solid, modern, JPA compliant, Spring based, working example of a "GenericDAOImpl" that proxies an Interface to provide generic finder execution -- like the one in the IBM article does?

  • #2
    Found one:

    http://redmine.synyx.org/projects/show/hades

    Comment


    • #3
      Originally posted by hdave View Post
      I've read this article:

      http://www.ibm.com/developerworks/ja...enericdao.html

      Can anybody point me to an example of a solid, modern, JPA compliant, Spring based, working example of a "GenericDAOImpl" that proxies an Interface to provide generic finder execution -- like the one in the IBM article does?
      This is http://perfectjpattern.sourceforge.n...enericdao.html a modernized implementation of that article. Make sure to checkout trunk (snapshot release version) for up to date versions of Spring and Hibernate.

      Comment

      Working...
      X