wood burning stoves 2.0*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "DAO to Entity Bean" Watch "DAO to Entity Bean" New topic
Author

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?


Srini
LazyCoder
Greenhorn

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
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


Rahul Juneja
ThoughtClicks - http://techlabs.thoughtclicks.com
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: DAO to Entity Bean