Forums Register Login

Entity Bean and DAO

+Pie Number of slices to send: Send
What is the difference between Entity Bean and DAO.
and when should we use DAO and Entity Bean
Regards,
aakash
+Pie Number of slices to send: Send
A DAO is used to basically write all data access logic. U might be reading the data from a database, flat file or any other source. U'll start with a top level DAO class and a separate DAO for each underlying data storage. The client only needs to know the methods to be invoked to get data and not the underlyisng data storage logic.
U can use DAO in conjunction with an BMP entity beans. That way u won't have to make changes in ur bean everytime u want to make changes to ur database calls.
+Pie Number of slices to send: Send
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1644 times.
Similar Threads
Txn not automatically rolling back after RemoteException
Why Entity bean is not used ?
BMP and DAO - what comes first
EJB Model
Do we need to drow DAO and entity bean?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:46:06.