Summary

This chapter has introduced the Data Access Object design pattern and defined a set of interfaces that will be used in our 3T application. The DAO design pattern clearly separates the persistence layer operations from the business logic of the application. As will be introduced in the next chapter, this clear separation ensures that the data access layer is easy to test and maintain.

We have also introduced Java Generics as a technique to simplify application design by moving common functionality to an ancestor. The GenericDao interface and the GenericDaoImpl class define and implement methods that will be available free of cost to the extending components. Our implementations also introduced SLF4J, transactional semantics, and working ...

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.