Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DAO to Entity Bean

 
Srinivasa Kadiyala
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
LazyCoder
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Karthik,

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.

Thanks,
Rahul Juneja

rahul.juneja@patni.com
 
Srinivasa Kadiyala
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic