-
Enterprise Java

Detach & Attach Entities in Spring JPA Example
1. Introduction Spring Data JPA simplifies persistence by abstracting away Hibernate-specific boilerplate code. The org.springframework.data.jpa.repository.JpaRepository interface provides CRUD operations for…
Read More » -
Enterprise Java

Inserting BLOB Using Spring JdbcTemplate Example
1. Introduction BLOB (Binary Large Object) is a large object data type in the database system. BLOB could store documents,…
Read More » -
JavaScript

JavaScript Closure Examples
1. Introduction A closure in programming languages means that a function remembers variables from the outer (lexical) scope where it…
Read More » -
Java

Spring Data JPA Switch to AWS RDS Proxy Example
1. Introduction AWS RDS Proxy is a fully managed, highly available database proxy for Amazon Relational Database Service(RDS). It sits…
Read More » -
Enterprise Java

HTTP Client From OpenAPI Spec And Spring Boot Example
1. Introduction OpenAPI ( formerly Swagger) provides a standard way to describe Rest APIs and OpenAPI Generator tool to generate…
Read More » -
Core Java

Mocking Logger and LoggerFactory Example
1. Introduction The SLF4J library provides the Logger interface and LoggerFactory utility class to create a logger instance for a…
Read More » -
Java

Lombok @Data and Final Fields Default Constructor Error Example
1. Introduction Lombok is an open-source Java library that generates getter, setter, toString, equals, hashCode, and constructors automatically to reduce common boilerplate code. The…
Read More » -
Java

Preventing Jackson from Fetching Lazy Entity Fields Example
1. Introduction The Spring Boot JPA project uses Jackson for JSON serialization. When Jackson serializes a JPA entity, it can…
Read More » -
Core Java

Deserialize to a Map with Correct Type Example
1. Introduction Deserialization is the process of converting data to Java objects. In this example, I will demonstrate how to…
Read More »







