This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DAO Pattern  RSS feed

 
Mark Henryson
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What is DAO Pattern? I want to learn the DAO Pattern. Any simple tutorial for beginners other than the sun site. Please provide sample/example coding of what is DAO Pattern.

I think DAO Pattern is used for Database. If I want to add a employee ID and Employee name into the database. How to design this simple thing in the DAO Pattern. What are the advantages of using DAO Pattern. Please give me some direction in it.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mark Henryson:
What is DAO Pattern? I want to learn the DAO Pattern. Any simple tutorial for beginners other than the sun site. Please provide sample/example coding of what is DAO Pattern.

Data Access Object


I think DAO Pattern is used for Database.


Yes, thats why it is less related to servlet.
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the Hibernate literature, they seem to like to refer to it as the DAO anti-pattern
 
Dave Tuttle
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go to the source: http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
(first hit on google search).
--Dave
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65970
140
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave, it's really not necessary to post a link that's already been posted.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!