O'Reilly logo

Struts 2 Design and Programming: A Tutorial by Budi Kurniawan

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 11. The Persistence Layer

At some stage, application data needs to be persisted or saved to secondary storage. Several methods are available, including storing them into files, relational databases, XML documents, and so on. Of these, persisting data to a relational database is the most reliable and the most popular. In addition, object-to-relational database mapping tools can be purchased off the shelf to help Java programmers persist Java objects.

Without a mapping tool, you have other options in hand. These include the Data Access Object (DAO) pattern, Java Data Objects (JDO), open source libraries such as Hibernate, and so on. Of these, the DAO pattern in the easiest to learn and is sufficient in most applications. This chapter shows ...

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