Hibernate JPA / Spring 2 / DAO Pattern

2 views
Skip to first unread message

Steve Mitchell

unread,
Aug 18, 2008, 3:10:30 PM8/18/08
to KCJava
I'm adding the plumbing to an application using Hiberate 3 JPA and Spring 2.  When looking at how to do the JPA DAOs with annotations I found a thread debating whether JPA has killed the DAO pattern.  I'm curious what the rest of you think:

Here is what I was planning on doing:
http://blog.springsource.com/main/2006/08/07/using-jpa-in-spring-without-referencing-spring/

Here is the post pitting JPA against the DAO pattern:
http://www.infoq.com/news/2007/09/jpa-dao

Gregg Bolinger

unread,
Aug 18, 2008, 3:14:35 PM8/18/08
to KCJ...@googlegroups.com
After writing this:

http://www.greggbolinger.com/blog/2008/04/17/1208457000000.html

I posted the following on JavaRanch and got some good responses both for and against.

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=78&t=004045

I'm still torn.  I can see the need for a DAO at times.  But I feel like it should be only on an as needed basis.  Not something you automatically do just because you are accessing a database.

Gregg
--
Gregg Bolinger
Reply all
Reply to author
Forward
0 new messages