Category: Java

Sorting in Spring Data JPA

In previous article we saw how query methods can be written.Now what if we want to sort results of query methods according to some criteria? This article will deal with that problem. We can sort results without writing any queries…

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…

State Design Pattern Implementation

In this article we are going to deal with a design pattern that is very similar to strategy pattern.┬áHere we are going to learn state design pattern implementation. State Design Pattern Implementation: State pattern tries to implement state transitions in…

Composite Design Pattern Implementation

This article will continue with series of structural design patterns and concentrate on composite design pattern implementation. Composite Design Pattern Implementation: Composite pattern allows you to compose objects into tree structure to represent part whole hierarchies. It lets clients treat…

Bridge Design Pattern Implementation

We are going to see yet another design pattern in this article. Bridge design pattern implementation is used with runtime binding of implementation is needed. Bridge Design Pattern Implementation: It is defined as Bridge pattern decouples an abstraction from its…

Proxy Design Pattern Implementation

Continuing our series of design pattern, we will learn yet another i.e. proxy design pattern implementation in this article. It is a structural design pattern which acts as a placeholder for other objects.   Proxy Design Pattern Implementation: Gang of…

Adapter Design Pattern Implementation

From this article onwards we are going to see structural design patterns. Adapter design pattern implementation is one of the most widely used pattern in real life scenario as well as software applications. Adapter Design Pattern Implementation: Gang of Four…

Visitor Design Pattern Implementation

In this article we are going to understand yet another design pattern i.e. visitor design pattern implementation. Visitor Design Pattern Implementation: Gang of Four defines visitor pattern as, Represent an operation to be performed on elements of an object structure.…