Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DAO Pattern

 
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
Pie
Posts: 65113
89
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