I didn't say you CANNOT use DAOs anymore. I just said you CAN leave them out (in many
cases).
Look at the AppFuse framework (Spring + Hibernate):
- Entity class
- DAO interface
- DAO implementation
- Manager interface
- Manager implementation
- Backing bean for presentation layer
*dooooh*
Same in Seam:
- Entity class
- Controller local interface
- Controller stateful bean
Yes, of course, there are many special cases. When using huge shared databases or
whatever, then use DAOs. But in many cases it's not necessary.
Be courageous and don't use patterns you don't need just because others use to use
them ;).
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971977#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...