I am having a few issue in understanding the DAO design pattern Here.
My confusion lies on two points :
- In the "problem" section of the website, the
entity beanswhich are referred to...are they solely for web technologies? I believe I am using the above design pattern with a pure java program, where I use DTO and DAO using generics to represent several types (Contacts, events, jobs, academics). Each have their own implementation of a super-classBASEDAO, which manages all the sql statements to the database and its connectivity.
Now, I am not sure whether my DTOs to represent contact, event, job would be classed as ENTITY BEAN or not. Would my DTO come under the business component the above site speaks of?
- Towards the end of the Problem section of the website, it speaks of t*ight coupling between the components and the data source implementation*. I am not sure what this means. Would anyone be kind enough to elaborate or show me a simple example with Java code with the