Chapter 4. Data Access Made Easy

The Data Access Object (DAO) design pattern is a simple and elegant way of abstracting database persistence from application business logic. This design ensures a clear separation of the two core parts of any enterprise application: the data access layer and the service (or business logic) layer. The DAO pattern is a well-understood Java EE programming structure, initially brought to prominence by Sun Microsystems in its Java EE Design Blueprints that has since been adopted by other programming environments such as the .NET framework.

The following image illustrates where the DAO layer sits in the overall application structure:

Changing an implementation in the DAO layer should not affect the service layer in any ...

Get Enterprise Application Development with Ext JS and Spring now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.