what are the disadvantages of DAO design patterns?
Printable View
what are the disadvantages of DAO design patterns?
[b]advantages:[/b]
• simple – can be understood by most java developers
• separation of data (dto) and behaviour (dao)
• designed for distributed architectures (dto classes can be passed between tiers and dao classes can be exposed as j2ee session beans or web services)
• no runtime container required (dao code can be unit tested on the client)
• can result in highly efficient code if dao code is designed to take advantage of database capabilities (stored procedures, joins, etc).
[b]disadvantages:[/b]
• requires large volumes of implementation code to be written (unless a dao code generator is being used)
• writing code to navigate the object model requires some understanding of the database schema