Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this chapter we will look at the most common type of persistence mechanism used for Java objects: relational databases. When you use relational databases, you need to translate Java objects into database tables, columns, and records as well as translate relationships, such as inheritance, dependencies, and references, into additional columns or tables.
The following practical designs are available for building a persistence layer (see Figure 9.1).