Category: Spring

Pagination in spring data jpa

In previous articles we have seen how to sort entities. Sometimes we come across requirement where there is huge resultset and it need not be fetched all at once. We have to fetch small sections of big resultset. This article…

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…

Spring Data JPA Hello World

Going forward in our series, spring data jpa hello world will provides an example which shows how to insert an entity using spring data jpa. Spring Data JPA Hello World: Objective: We are going to insert an Employee entity using…

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…

Spring Data Interfaces

We have seen introduction to spring data in previous article, this will deal with a brief overview of spring data interfaces. Spring Data Interfaces: We are actually going to use spring data jpa and  mongodb while actually creating our examples.…

Introduction to Spring Data

We have learned about Java Persistence API and MongoDB in another tutorial series.Here, we will learn about spring data which mainly deal with spring data variants i.e.  jpa and mongodb.    Spring Data: While developing ORM or persistence applications, we…