O'Reilly logo

Groovy Programming by John Savage, Kenneth Barclay

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 18 CASE STUDY

A LIBRARY APPLICATION (PERSISTENCE)

In this chapter, we extend the final iteration of the application developed in Chapter 16 so that the library, its borrowers, and publications (the domain model) persist in a database. Earlier, we made use of an Action object to implement a model-view-controller (MVC) architecture and, as a consequence, keep the domain model separate from the user interaction code. In this case study, we introduce a data access object (DAO) to keep the domain model separate from database persistence code. It is implemented with the Spring framework and the Cloudscape DBMS.

The Publication, Book, and Journal classes are unchanged and only a minor change is required in the Borrower class. However, there ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required