Part 6. Writing queries and testing Java persistence applications

 

In part 6, you’ll learn how to write queries and how to test Java persistence applications.

In chapter 19, you’ll learn to work with Querydsl, one of the alternatives for querying a database using Java programs. We’ll examine its most important capabilities and we’ll apply them in a Java persistence project.

Next, chapter 20 examines how to test Java persistence applications. We’ll introduce the testing pyramid and examine persistence testing in its context. We’ll use the Spring TestContext Framework and its annotations, we’ll work with Spring profiles, and we’ll use test execution listeners to test Java persistence applications.

After reading this part of the book, you’ll know how to write queries using Querydsl and how to test persistence applications using the Spring TestContext Framework.