#03 - Java Persistence Query Language (JPQL) | JAVA PERSISTENCE API (JPA) | Tutorial | Java
✅ Java Persistence Query Language (JPQL).
JPQL stands for Java Persistence Query Language defined in JPA specification.
The Java Persistence Query Language JPQL is an object-oriented query language that is used to perform database operations on persistent entities. Instead of the database table, JPQL uses the entity object model to operate the SQL queries.
Java Persistence Query Language JPQL is developed based on SQL syntax.
JPQL won’t affect the database directly.
Java Persistence Query Language JPQL is an extension of Entity JavaBeans Query Language (EJBQL), adding the following important features to
- perform join operations.
- update and delete data in a bulk.
- perform an aggregate function (sorting or grouping)
- have singe and multiple value result types
In this video, we are going to learn how to use Java Persistence Query Language JPQL to :
- find an entity
- update an entity
- sort an entity
- filter an entity
- delete an entity
- how to use the NamedQuery annotation.
Java Persistence Query Language JPQL syntax is very similar to the syntax of SQL.
We are going to use the Student entity defined in the previous video in order to create, update, find, and delete a student. During this video, we are going to use the H2 database for database operations.
▶GitHub Repository: https://github.com/GiuseppeScaramuzzino/jpatutorial
EntityManagerFactory | EntityManager | EntityTransaction
0:00 Introduction
0:36 Create the persistence.xml
4:01 Persist the JPA Entity
6:20 Find the JPA Entity
9:15 Update the JPA Entity
11:48 Delete the JPA Entity
13:10 Refactoring the code with EntityRepository
19:35 Adding the Unit Test
❤️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 ▬▬●
▶GitHub Repository: https://github.com/GiuseppeScaramuzzino/jpatutorial
? Blogs to follow to learn more about JPA:
▶ Baeldung: https://www.baeldung.com/
▶Javin Paul: https://javarevisited.blogspot.com/ | https://medium.com/@javinpaul
▶Vlad Mihalcea: https://vladmihalcea.com/
SUBSCRIBE:
? Subscribe to my Channel to always keep updated about the new video:
https://www.youtube.com/c/GiuseppeScaramuzzino
? FOLLOW ME:
▶Twitter:
https://twitter.com/GiuseScara
▶Linkedin:
https://www.linkedin.com/in/giuseppe-scaramuzzino
▶YouTube:
https://www.youtube.com/c/GiuseppeScaramuzzino
? TRACK INFO:
@RoaMusic
~~Roa Music~~
▶YouTube
https://www.youtube.com/RoaMusic
▶Spotify
https://open.spotify.com/artist/1ETpo...
▶Soundcloud
https://soundcloud.com/roa_music1031
#JavaPersistenceAPI #JPQL #Tutorial
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «#03 - Java Persistence Query Language (JPQL) | JAVA PERSISTENCE API (JPA) | Tutorial | Java», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.