Back to Browse

#03 - Java Persistence Query Language (JPQL) | JAVA PERSISTENCE API (JPA) | Tutorial | Java

19.2K views
Aug 11, 2020
22:45

✅ 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

Download

1 formats

Video Formats

360pmp436.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

#03 - Java Persistence Query Language (JPQL) | JAVA PERSISTENCE API (JPA) | Tutorial | Java | NatokHD