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
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Reply 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: 11
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: 190
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.



 
IntelliJ Java IDE
 
subject: Difference between Repository and DAO petterns
 
Threads others viewed
What is the difference between sand box and repository
Difference between DAO and hibernateDAO file?
Which one between Session Facade and Business Delegate ?
why is that?
some unsure questions on phase 1