Enterprise Java
-
Optimistic locking retry with MongoDB
In my previous post I talked about the benefit of employing optimistic locking for MongoDB batch processors. As I wrote…
Read More » -
Embedding Maven
It is a very rare usecase, but sometimes you need it. How to embed Maven in your application, so that…
Read More » -
HOW-TO: Using @PropertySource annotation in Spring 4 with Java 7
Today I migrated one of my projects, that I am currently working on, to Spring 4.0. Since it is a…
Read More » -
@ControllerAdvice improvements in Spring 4
Among many new features in Spring 4 I found @ControllerAdvice improvements. @ControllerAdvice is a specialization of a @Component that is…
Read More » -
Simple CRUD using Servlet 3.0, Redis/Jedis and CDI – Part 2
In this post we will focus on CDI and Servlet 3.0. You can see part 1 here. Let’s start with…
Read More » -
Hibernate Facts: Equals and HashCode
Every Java object inherits the equals and hashCode methods, yet they are useful only for Value objects, being of no…
Read More » -
Hibernate Facts: Multi level fetching
It’s quite common to retrieve a root entity along with its children associations on multiple levels. In our example we…
Read More » -
RESTful Web Services with Java
REST stands for REpresentational State Transfer, was first introduced by Roy Fielding in his thesis “Architectural Styles and the Design…
Read More » -
Hibernate Facts: Knowing flush operations order matters
Hibernate shifts the developer mindset from thinking SQL into thinking object state transitions. According to Hibernate Docs entity may be…
Read More »