This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Difference between Repository and DAO petterns Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Difference between Repository and DAO petterns" Watch "Difference between Repository and DAO petterns" New topic
Author

Difference between Repository and DAO petterns

Yash Don
Greenhorn

Joined: May 19, 2010
Posts: 12
Hi All,

I have a small doubt about Repository and DAO patterns. I have read both the patterns and they look very similar.

Can you please tell me the difference between them


Regards,
Yash

SCJP, SCWCD
Arnold Reuser
Ranch Hand

Joined: Nov 20, 2003
Posts: 194
Try to find out if DAO or the Repository pattern is most applicable to the following situation :
Imagine you would like to provide a uniform data access API for a persistent mechanism to various types of data sources such as RDBMS, LDAP, OODB, XML repositories and flat files.



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between Repository and DAO petterns
 
Similar Threads
Which one between Session Facade and Business Delegate ?
some unsure questions on phase 1
why is that?
Difference between DAO and hibernateDAO file?
What is the difference between sand box and repository