Java
-
Type Safe Queries for JPA’s Native Query API
When you’re using JPA – sometimes – JPQL won’t do the trick and you’ll have to resort to native SQL.…
Read More » -
A Few Thoughts on Unit Test Scaffolding
When I start to repeat myself in unit test methods by creating the same objects and preparing the data to…
Read More » -
Puzzler: nested computeIfAbsent
Overview The Java 8 libraries have a new method on map, computeIfAbsent. This is very useful way to turn your…
Read More » -
How does Hibernate READ_WRITE CacheConcurrencyStrategy work
Introduction In my previous post, I introduced the NONSTRICT_READ_WRITE second-level cache concurrency mechanism. In this article, I am going to…
Read More » -
The structure of Apache Lucene
The inestimably noble Apache Software Foundation produces many of the blockbuster products (Ant, CouchDB, Hadoop, JMeter, Maven, OpenOffice, Subversion, etc.)…
Read More » -
Do Not Make This Mistake When Developing an SPI
Most of your code is private, internal, proprietary, and will never be exposed to public. If that’s the case, you…
Read More » -
Getting version string from a Maven based web application
When you package a maven project, it will automatically generate a pom.properties file inside that will contains the version, artifactId…
Read More » -
Quasar and Akka – a Comparison
The actor model is a design pattern for fault-tolerant and highly scalable systems. Actors are independent worker-modules that communicate with…
Read More » -
What is Garbage Collection?
The following is an example from our Garbage Collection Handbook which will be published in the forthcoming weeks. In the meanwhile, take…
Read More »