An Introduction to Atomic Variables in Java 1. Introduction Simply put, shared state very easily leads to problems when concurrency is involved. If access to shared mutable objects is not managed properly, applications can quickly become prone to some hard-to-detect concurrency errors. In this article, we’ll revisit the use of… Continue Reading java-atomic-variables

Intro to AspectJ 1. Introduction This article is a quick and practical introduction to AspectJ. First, we’ll show how to enable aspect-oriented programming, and then we’ll focus on the difference between compile-time, post-compile, and load-time weaving. Let’s start with a short introduction of aspect-oriented programming (AOP) and AspectJ’s basics. 2.… Continue Reading aspectj

Hibernate Tips Book Excerpt: How to Map an Inheritance Hierarchy to One Table Persistence Hibernate 1. Introduction Inheritance is one of the key concepts in Java. So, it’s no surprise that most domain models use it. But unfortunately, this concept doesn’t exist in relational databases, and you need to find… Continue Reading hibernate-tips-how-to-map-an-inheritance-hierarchy-to-one-table