Articles for April, 2014

Java Persistence API: Controlling the Second-Level-Cache

Monday, April 21st, 2014

Using the Java Persistence API and a decent persistence provider allows us to configure and fine-tune when and how the second level cache is used in our application.

In the following short examples, we’re going to demonstrate those features written as JUnit test cases and running on a H2 in-memory database.