I wanted to do a little sample application in Kotlin. I’m getting tired of using JPA for all the things, so I decided to try out MyBatis. I had used MyBatis with great success years ago, .. READ MORE
MyBatis and Kotlin

I wanted to do a little sample application in Kotlin. I’m getting tired of using JPA for all the things, so I decided to try out MyBatis. I had used MyBatis with great success years ago, .. READ MORE
MongoDB does something interesting that we aren’t used to in the Java world – if you use the MongoClient object, it manages the pooling for you on the server side. This is different than how .. READ MORE
I was writing a Spring Boot microservice that called an external service. If the service returned a `500`, the payload of the response had an error code that we wanted to send back to the .. READ MORE
When upgrading a project’s Mongo driver from 2.13.0 to 3.4.2, we got the following exception: org.bson.codecs.configuration.CodecConfigurationException: can’t find a codec for class java.math.BigDecimal. Well it seems that Mongo doesn’t support BigDecimal any longer. There we .. READ MORE
I’ve been trying to simplify my tools lately – less reliance on Intelij IDEA and using the command line more and more. At times, I feel like my workflow has sped up because of a .. READ MORE
There was a discussion on our company Slack recently about databases and XML, and someone pointed out that PostgreSQL has some nice XML functions. I’m a Postgres fan and knew that it had some XML .. READ MORE
I looked at the release notes for Spring Boot 2.0.0.M1 not expecting a lot of exciting changes but was surprised by some compelling things. There is the usual “deprecated classes are removed” and “Dependency X .. READ MORE
The concept of data migrations has been around for a long time and in the past, they have been projects that are separated from the main project, mostly with SQL script to change the tables, .. READ MORE
I stumbled onto an old application that hasn’t been touched for many years. The code was honestly well-written but it used Ant (without Ivy) to build. That is cumbersome in this day and age. I .. READ MORE
So I was writing a simple Camel route where I was fetching a JPA-backed entity on one step and then using it on another. While executing that second step, I got this error: org.hibernate.LazyInitializationException: could .. READ MORE