On Wednesday 15 April 2009 23:07:05 Daniel Toffetti wrote: > Hi all, > > I'm looking for a JPA based DAO solution with minimal dependencies on > other libraries. So far I've found lots of implementations based on JPA > "and" Spring, Hibernate, both of them, TopLink, etc. I would like to know > if there is any standard way of doing it, or reference implementation (even > small, unfinished open source), or else if it's worth to attempt to do it. > Having seen so many DAO libraries and wrappers, so many articles and blog > posts everywhere, I must admit that I'm confused. Any advice is welcomed !! > > Regards, > > Daniel
Personally, I like Spring. It is mostly inobtrusive and easy to unit test. I have a GenericDao I wrote and reuse. It is tied to Spring's JpaTemplate and DaoSupport, but it's easy and works great. If you want it, ping me off-list, and I'll send it over with an example spring config (with pooling connections). -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher
