#04 - OneToOne Entity Relationship JPA | JAVA PERSISTENCE API JPA | Tutorial | Java

Veröffentlicht am: 18 August 2020
auf dem Kanal: Giuseppe Scaramuzzino
6,740
66

✅ 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


Auf dieser Seite können Sie das Online-Video #04 - OneToOne Entity Relationship JPA | JAVA PERSISTENCE API JPA | Tutorial | Java mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Giuseppe Scaramuzzino 18 August 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 6,740 Mal angesehen und es wurde von 66 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!