Chapter 8. Database access
This chapter covers
- JDBC and the Groovy Sql class
- Simplifying Hibernate and JPA using GORM
- Working with the NoSQL database
Virtually every significant application uses persistent data in one form or another. The vast majority of them save the data in relational databases. To make it easy to switch from one database to another, Java provides the JDBC API. While JDBC does handle the required tasks, its low-level nature leads to many lines of code to handle even the simplest tasks.
1 You would think that JDBC stands for Java Database Connectivity. Everyone would agree with you, except for the people at Sun (now Oracle) who created the API. They claim that JDBC is a trademarked acronym that doesn’t stand for ...