Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

CHAPTER 12: Designing and Implementing Spring-Based Applications

C H A P T E R  12

Designing and Implementing Spring-Based Applications

In previous chapters, we discussed various topics related to application development with Spring, including Spring’s ApplicationContext configuration, various DI mechanisms, AOP support for cross-cutting concerns, and how Spring integrates with different data access technologies for interacting with backend relational databases.

When discussing implementations of data access logic, you saw how to use different implementation patterns. For example, in Chapter 8, which covered data access with JDBC, the data access logic was encapsulated in DAOs. In Chapters 10 and 11, when discussing JPA and MyBatis, we eliminated the DAO layer and had the JPA’s EntityManager and MyBatis’s mapper interfaces injected into the service layer directly. In those chapters, we also mentioned the design of domain objects (or the entity classes, in JPA terms) and showed how their attributes and relationships were modeled and mapped to the database structure.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial