Back to Browse

#02 - Persistence Operations | JAVA PERSISTENCE API (JPA) | Tutorial | Java

27.8K views
Aug 3, 2020
26:00

✅ Persistence Operations with Java Persistence API (JPA). Java Persistence API (JPA), it's a specification of Java. JPA is used to persist data between Java objects and relational databases. You can think of the Java Persistence API as a bridge between object-oriented domain models and relational database systems. Persistence operations are used against the database and they are load and store operations. In this video, we are going to explore in detail the Entity Managers and more specific we are going to learn: - how to create the persistence.xml file - how to create an entity and store it in the database with the entity managers - how to update an entity with the entity managers - how to find an entity with the entity managers - how to delete an entity with the entity managers 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/watch?v=uMGsosygz6Q https://www.youtube.com/RoaMusic ▶Spotify https://open.spotify.com/artist/1ETpo... ▶Soundcloud https://soundcloud.com/roa_music1031 #JavaPersistenceAPI #JPA #Tutorial

Download

1 formats

Video Formats

360pmp440.9 MB

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

#02 - Persistence Operations | JAVA PERSISTENCE API (JPA) | Tutorial | Java | NatokHD