DataNucleus JPA Enhancement with GradleArmel Soro published on 2018-10-29 included in BlogsA notable behavior of JPA providers is to enhance JPA classes, by modifying their bytecode to add few capabilities. DataNucleus (DN) currently provides a Maven Plugin for calling its Enhancer. This article walks through calling DN Enhancer in a Gradle build script in a very efficient way.
Running Java Integration Tests against a PostgreSQL Embedded databaseArmel Soro published on 2018-09-28 included in BlogsToday, I’m going to walk you through running integration tests on the JVM against a real production-like PostgreSQL database. All without losing in terms of overall testing time or performance (especially when you have a database with hundreds of tables). In-memory databases (e.g., H2, HSQLDB, SQLite, …) are very often used as drop-in replacements when running integration tests. This is generally in order to make such tests run fast, self-contained and therefore free of side effects.
Saving a read-only file edited with Vi/VimArmel Soro published on 2018-08-15 included in BlogsHow to save a read-only file edited with Vi or Vim without losing your changes