Tag : Example

Spring provides a simple API to work with SQL called JdbcTemplate (JavaDoc). This is a very popular class as it simplifies the code when dealing with databases. The JdbcTemplate does not provide transaction support out-of-the-box and in this article we will see how to make use of transactions.

Albert Attard
Author: 5 years ago

Maven is a framework, or an application if you may, which helps you manage a project’s lifecycle. For those new to Maven, usually we have our IDE such as Eclipse, NetBeans or SpringSource Tool Suite (STS), to handle the creation, compilation and deploying of projects. Instead, we can use Maven independent from the development environment (to some extent), to manage the project’s lifecycle. In this article we will see how Maven can help use in managing dependencies and creating a final product which can be deployed to a production system.

Albert Attard
Author: 5 years ago

GSON provides a set annotations to simplify the serialisation and deserialisation processes. In this article we will see how we can use these annotations and how these can simplify the use of GSON to convert between Java objects and JSON objects.

Albert Attard
Author: 5 years ago

This article continues on a previous article, that described simple and basic use of GSON. In this article we will see how to parse complex JSON objects into existing Java objects that do not necessary have the same structure as the JSON object. We will see how the use of the GSON deserialiser (JsonDeserializer Java Doc) in order to control how the JSON object maps to the Java object.

Albert Attard
Author: 5 years ago