#09 Criteria API JPA | JAVA PERSISTENCE API JPA | Tutorial | Java | JakartaEE

preview_player
Показать описание
✅ JPA Criteria API
The Criteria API is one of the most common ways of constructing queries for entities and their persistent state. It is just an alternative method for defining JPA queries.

Criteria API defines a platform-independent criteria queries, written in Java programming language. It was introduced in JPA 2.0. The main purpose behind this is to provide a type-safe way to express a query.
In this video, we're going to use:

- SELECT
- WHERE
- DISTINCT
- ORDER BY
- GROUP BY

We’re going to use the EntityManager to create a CriteriaBuilder object.
After that, using the CriteriaBuilder we're going to create the CriteriaQuery. The CriteriaQuery is used to create a query object.

During this video, we are going to use the H2 database for database operations.

📚 Blogs to follow to learn more about JPA:

Criteria API | EntityManager | CriteriaBuilder | CriteriaQuery | EntityRelationship | JakartaEE | JPA | Java

0:00 Introduction
0:37 SELECT with Criteria API | JPA
3:48 ORDER BY with Criteria API | JPA
5:08 WHERE with Criteria API | JPA
8:16 GROUP BY with Criteria API | JPA

❤️Let's start and please enjoy the video.

Thanks for watching!

✍️ If you have any questions or doubts don’t hesitate to write them inside the comments section below.

●▬▬▬ LINKS ▬▬▬●

SUBSCRIBE:
🔔 Subscribe to my Channel to always keep updated about the new video:

💯 FOLLOW ME:
▶Twitter:
▶Linkedin:
▶YouTube:

🎵 TRACK INFO: @RoaMusic
~~Roa Music~~
▶YouTube
▶Spotify
▶Soundcloud

#JavaPersistenceAPI #JPA #Tutorial
Рекомендации по теме
Комментарии
Автор

Hi, could you please do an example of performing different types of JOIN with criteria API? Thanks.

roynonsensekeane
Автор

is that possible suppose we dont have any Address class reference in employee and we want to perform join using criateria api ? if possible then please make example on that.

bollywoodssongs
Автор

is it possible to make joins using Criteria API ?

AhmedMkhinini