✅ JPA Entity Relationship, One To One Relationship
The relations are more effective between tables in the database. The entity classes are treated as relational tables, the relationships between Entity classes are as follows:
@ManyToOne Relation
@OneToMany Relation
@OneToOne Relation
@ManyToMany Relation
In this video, we are going to learn the OneToOne Relationship in Java Persistence API (JPA).
In the One-To-One relationship, one item can belong to only one other item. It means each row of one entity is referred to one and only one row of another entity.
We are going to use the Student entity defined in the previous video and we are going to implement a new Entity called: School.
During this video, we are going to use the H2 database for database operations.
▶GitHub Repository: https://github.com/GiuseppeScaramuzzi...
OneToOne | EntityManager | EntityRelationship
0:00 Introduction
0:12 JPA Entity Relationship
0:28 OneToOne Relationship
1:00 Create the OneToOne Relationship
1:30 Create School Entity
2:45 Implement addSchool
4:30 Create SchoolRepository
7:11 Persist School
8:40 Assign School to Student
❤️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/GiuseppeScaramuzzi...
📚 Blogs to follow to learn more about JPA:
▶ Baeldung: https://www.baeldung.com/
▶Javin Paul: https://javarevisited.blogspot.com/ | / javinpaul
▶Vlad Mihalcea: https://vladmihalcea.com/
SUBSCRIBE:
🔔 Subscribe to my Channel to always keep updated about the new video:
/ giuseppescaramuzzino
💯 FOLLOW ME:
▶Twitter:
/ giusescara
▶Linkedin:
/ giuseppe-scaramuzzino
▶YouTube:
/ giuseppescaramuzzino
🎵 TRACK INFO: @RoaMusic
~~Roa Music~~
▶YouTube
• Roa - Harmony 【Official】
/ roamusic
▶Spotify
https://open.spotify.com/artist/1ETpo...
▶Soundcloud
/ roa_music1031
#JavaPersistenceAPI #JPA #Tutorial
На этой странице сайта вы можете посмотреть видео онлайн #04 - OneToOne Entity Relationship JPA | JAVA PERSISTENCE API JPA | Tutorial | Java длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Giuseppe Scaramuzzino 18 Август 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 6,740 раз и оно понравилось 66 зрителям. Приятного просмотра!