Category: Java EE

Spring Data JPA Query Methods

We have learned about creating a simple hello world example in previous article. In this article we will learn about retrieving data from entities without really writing queries.   Spring Data JPA Query Methods: Pre-requisites: MySQL database installed on your…

Spring Data JPA Interfaces

This article will simply introduce spring data jpa interfaces. Here onwards, we are going to see JPA specific spring data implementation. Spring Data JPA Interfaces: In previous article we saw generic interfaces which abstract the functionality to provide repositories and common…

Template Method Implementation

This article deals with yet another behavioural pattern. We are going to see Template Method Implementation. Template Method Implementation: Template method design pattern is defined as follows. Template method design pattern defines the skeleton of an algorithm in a method,…

Mediator Design Pattern Implementation

We will see another behavioural pattern in this article. This will deal with Mediator Design Pattern Implementation. Mediator Design Pattern Implementation: It can be defined as follows. Defines an object that encapsulates how a set of objects interact. Mediator promotes…

Command Design Pattern Implementation

Yet another interesting article in our design patterns implementations series. This article will deal with command design pattern implementation. It allows us to encapsulate commands in objects enabling us to issue requests without knowing requested operations. Command Design Pattern Implementation:…

Prototype Design Pattern Implementation

Let us learn yet another creational design pattern in this article. Prototype design pattern implementation allows us to solve the problem of having multiple copies of objects those are expensive and resource intensive to create. Prototype Design Pattern Implementation: Gang…

Builder Design Pattern

Going forward with our design pattern tutorials, we will see yet another creational design pattern i.e. builder design pattern. Builder Design Pattern: Builder design pattern allows the client to create object based only on type of object. Gang of Four…

Observer Pattern Implementation

Continuing with our design pattern articles, we will further dive into another popular and useful observer pattern implementation. In this article I will try to explain what is observer pattern and provide observer pattern implementation with a simple example. Observer…