Web tier: servlets, JSP, Web frameworks: DAO doubt
Since the client is always changing database specification during development, we have to modify DAO and Bean all the time. Any mechanism can avoid such loop?
Use a tool that generates the DAO/Beans from your data model. For example, TopLink or MiddleGen.
Of course, you will still have to modify your client code ...