Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Throughout this book we have used a mock data source—a simple Java class which only imitated storing and retrieving data. This wasn’t very exciting, but dealing with a real database normally means a lot of distractions. We would have to download such a database, install and configure it, and create the necessary tables in one or another way.
In order to work in a contemporary way, we might also wish to use some object-relational mapping solution like Hibernate. That would mean downloading, installing, configuring, and then writing a lot of XML, all from scratch to achieve what we want.