Using the CassandraTemplate from Spring Data 1. Overview This is the second article of the Spring Data Cassandra article series. In this article we will mainly focus on CassandraTemplate and CQL queries in the data access layer. You can read more about Spring Data Cassandra in the first article in… Continue Reading spring-data-cassandratemplate-cqltemplate

A Guide to Mapping With Dozer 1. Overview Dozer is a Java Bean to Java Bean mapper that recursively copies data from one object to another, attribute by attribute. The library not only supports mapping between attribute names of Java Beans, but also automatically converts between types – if they’re… Continue Reading dozer

Java 9 java.lang.Module API 1. Introduction Following A Guide to Java 9 Modularity, in this article, we’re going to explore the java.lang.Module API that was introduced alongside the Java Platform Module System. This API provides a way to access a module programmatically, to retrieve specific information from a module, and generally to work with… Continue Reading java-9-module-api

Java Weekly, Issue 236 Here we go… 1. Spring and Java ===== >> Hands on MongoDB 4.0 transactions with Spring Data [spring.io] ACID transactions are now available when using a MongoDB replica set with Spring Data. Very exciting! >> Try-With-Resource in Plain Java [javaspecialists.eu] A good write-up on the seemingly disproportionate amount… Continue Reading java-weekly-236

Spring Custom Property Editor 1. Introduction Simply put, Spring uses property editors heavily for managing conversion between String values and custom Object types; this is based on Java Beans PropertyEditor. In this tutorial, we’ll go over two different use cases for demonstrating automatic property editor binding and custom property editor… Continue Reading spring-mvc-custom-property-editor

A Guide to Java SynchronousQueue 1. Overview In this article, we’ll be looking at the SynchronousQueue from the java.util.concurrent package. Simply put, this implementation allows us to exchange information between threads in a thread-safe manner. 2. API Overview The SynchronousQueue only has two supported operations: take() and put(), and both… Continue Reading java-synchronous-queue