Java Weekly, Issue 226 Here we go… 1. Spring and Java ===== >> Monitor and troubleshoot Java applications and services with Datadog Sponsored Optimize performance with end-to-end tracing and out-of-the-box support for popular Java frameworks, application servers, and databases. Try it free.  >> Oracle Replaces JavaOne With Oracle Code One [infoq.com]… Continue Reading java-weekly-226

Map Serialization and Deserialization with Jackson 1. Overview In this article, we’ll look at serialization and deserialization of Java maps using Jackson. We’ll illustrate how to serialize and deserialize Map<String, String>, Map<Object, String>, and Map<Object, Object> to and from JSON-formatted Strings. 2. Maven Configuration [source,xml,gutter:,true] <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.9.4</version> </dependency>… Continue Reading jackson-map

Time Comparison of Arrays.sort(Object[]) and Arrays.sort(int[]) 1. Overview In this quick tutorial, we’ll compare the two Arrays.sort(Object[]) and Arrays.sort(int[]) sorting operations. First, we’ll describe each method separately. After that, we’ll write performance tests to measure their running times. 2. Arrays.sort(Object[]) Before we move ahead, it’s important to keep in mind that Arrays.sort() works… Continue Reading arrays-sortobject-vs-sortint

Programmatic Transactions in the Spring TestContext Framework 1. Introduction Spring has excellent support for declarative transaction management throughout application code as well as in integration tests. However, we may occasionally need fine-grained control over transaction boundaries. In this article, we’ll see how to programmatically interact with automatic transactions set up… Continue Reading spring-test-programmatic-transactions

Introduction to Hibernate Spatial 1. Introduction In this article, we’ll have a look a the spatial extension of Hibernate, hibernate-spatial. Starting with version 5, Hibernate Spatial provides a standard interface for working with geographic data. 2. Background on Hibernate Spatial Geographic data includes representation of entities like a Point, Line,… Continue Reading hibernate-spatial