File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes DAO to Entity Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "DAO to Entity Bean" Watch "DAO to Entity Bean" New topic

DAO to Entity Bean

Srinivasa Kadiyala
Ranch Hand

Joined: Jun 10, 2004
Posts: 237
I just would like to know what are the advantages of using a DAO object to Entity bean?

In the MVC pattern where can we group the DAO object?


Joined: Jul 08, 2004
Posts: 11
Advantage of using DAOs over entity beans is because of its performance.
DAO's should sit between ur entity beans and database in the architecture
Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425

Can you please re-check if DAO's are used just before Entity beans, as What I have experienced is DAO's are a substitute of Entity Beans and the DTO or VO's are the Objects which are used just before Entity beans.

Karthik, Can you please verify or correct me or anybody if I am wrong anywhere.

Rahul Juneja

Rahul Juneja
ThoughtClicks -
Srinivasa Kadiyala
Ranch Hand

Joined: Jun 10, 2004
Posts: 237
Thanks Karthik n Rahul.Pl clarify the following also

B T W...

1.How DAO improves performance.(Just give bulletted points only)

2.what I also understand is that DAO objects are substitute for Entity beans.

3.DAO and DTO bith are same or different??

Thanks again in advance
I agree. Here's the link:
subject: DAO to Entity Bean
jQuery in Action, 3rd edition