Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Before we start writing the business logic, we can start to get familiar with the project, configuring all XML and properties configuration files. First, we have to provide the application with a datasource that will be used by Hibernate to map the database tables with the Java persisted objects.
The datasource has been already set up by the archetype in the file called applicationContext-resources.xml located into /src/main/resources/. If you open this file, you'll notice a bean with id=dataSource as follows: