Java Spring Boot - JPA - Hibernate - H2 - Paging with Filtering and Sorting

preview_player
Показать описание
In this video we will learn how to implement paging, sorting and filtering for our entity using Criteria API. Our technological stack is Java Spring Boot, JPA, Hibernate and H2 database engine. We will deep dive into Criteria API so we will work with things like EntityManager, CriteriaBuilder and CriteriaQuery. We will learn how to create regular query to retrieve information about entity and also how to implement count query. Everything easly explained step by step.

Follow //CodefForgeYT on:
Рекомендации по теме
Комментарии
Автор

I solve my problem for 4min, thanks to video!

charcequence
Автор

thank you so much, you helped me understand this theme

regenschirm
Автор

great tutorial, can you make a video about joins and range (like date between?) your way of teaching is very easy to wrap our heads around

sukanyamondal
Автор

Hello, thank you for the tutorial. I'm trying to add a Date to the predicate this way and it's not working, should be any difference?

joaquinolmedovillodres
Автор

Thank you very much
Can you explain if i want to make query with joined table using criteria builder

mohamedalivip
Автор

Thanks , how use like.root.get("enumName") enum type from string parameter?

arsensargsyan
Автор

Hi, incase of custom count query based on multiple table joins.. how to get total count records for pagination?

srinathselvam
Автор

Hey thanks for this great video can you please provide a link of the video where we can get the swagger ui and work with our endpoints Like how to set it up and use that ?

niladrisekharnath
Автор

Hi, nice tutorial but what about joins ? for example i need to filter by fields that in other table

kanismit
Автор

Nice Tutorial, Thank you! One question, In real time how do we pass two different objects EmployeeSearchCriteria and Employee Page to get mapping method in the controller, For Example when testing it in post man

falseys
Автор

Hey, i saw in comments idea about filering information in range(date between). is it worth waiting for the video or have you changed your mind about making it?

rosssihovsk
Автор

Why aren't you using @Autowired tho? In the project I'm working on, the "regular" repository is already using this annotation (within the service... and the service is also autowired in the controller) and now I don't know how to adjust your code in order to make them both work together.

Khantia
Автор

If field has null values, how to make it return value zero??
Using criteria builder.
In sql i know we use IFNULL(NULL, 0)

BlendSkMix
Автор

Hello, How we can use operators like <.>, ! in as query params in the URL. How can i extract and use in the criteria builder

pratikghotekar
Автор

Could we just use Pagable interface from spring boot itseflf

averagedev
Автор

nice . But im unable to find github code for this tutorial ?

sunnyisonvacation
Автор

Thanks for the work but I think this video needs to be updated because of this problem "Error Message: Already registered a copy: SqmBasicValuedSimplePath". I'm using java 21.

Runnable
Автор

Is it possible to sort by multiple fields?

BabaykaMoscow
Автор

nice video, but it will be good to get more explanation about used objects and methods... Because most of the video - just retelling or spelling the code you write

artemryvkin
Автор

Thank you so much, How we can filter with nested objects
product {
title;
Detail detail;
}
Detail {
description;
}

WaqarAhmad-ikdt
visit shbcf.ru