JPA One to One Mapping Example with Spring Boot

In this tutorial, I will explain how to define one to one relationship between two entities using JPA. For instance we have a Person table and a License table.A Person table is associated with a single License and vice versa.Hence, Person and License table have one to one relationship with each other. The License Account […]

Spring Batch (Reading Data from DB Table)

Spring Batch is basically used to process or automate a job which can be scheduled to run at a date and time as per the given cron schedule.In this tutorial I will explain how to create a spring batch which can read data from a database table and process it. In my previous tutorial ,I […]

Spring JPA Beginner Tutorial

In this tutorial I will explain how to build a basic Spring JPA project using Spring Initilizr. Core Concept The goal of spring data repository is to significantly reduce the amount of boiler plate code required to implement the persistence/dao layer in any Spring application. The primary interface in Spring data repository abstraction is Repository.It […]

Spring Basics in Java

Java offers a final class java.lang.String which represents a sequence of characters as a 16 bit unicode. The string class offer various methods that can perform various operation on strings. Creating strings in Java There are three ways to create strings in Java Using the new operator: String str = new String(“Hello World”); When we […]

Dependency Injection

Dependency Injection is a design pattern used to implement IoC. Dependency Injection separates the creation of a client’s dependencies from the client behaviour , which allows program design to be loosely coupled and to follow the dependency inversion and single responsibility principles. Dependency injection involves four rules:- The service objects(s) to be used. The client […]