Artwork

Content provided by Best Java podcast on iTunes, learn about variables, control structures, collections, data types, des, Best Java podcast on iTunes, Learn about variables, and Control structures. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Best Java podcast on iTunes, learn about variables, control structures, collections, data types, des, Best Java podcast on iTunes, Learn about variables, and Control structures or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.
Player FM - Podcast App
Go offline with the Player FM app!

Hibernate @OneToOne Unidirectional / Bidirectional

36:21
 
Share
 

Manage episode 163963608 series 1289539
Content provided by Best Java podcast on iTunes, learn about variables, control structures, collections, data types, des, Best Java podcast on iTunes, Learn about variables, and Control structures. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Best Java podcast on iTunes, learn about variables, control structures, collections, data types, des, Best Java podcast on iTunes, Learn about variables, and Control structures or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.
One-to-One Unidirectional Relationship

Since you’ve already learned about the ins and outs of how unidirectional one-to-many and bidirectional one-to-many relationships work, it’s time to learn about the One-to-One relationships.

We will start things off with the unidirectional One-to-One relationship and how it’s set up in Hibernate.

First thing is first, you need to understand how a One-to-One relationship is actually set up in a database. Once you understand that the child table declares the parent’s primary key as the child’s primary key, then we can get moving with the Hibernate stuff!

For this example, we are going to use the One-to-One relationship between an Employee and their Address. TheAddress table will be set up as follows:

For more information, please read the show notes via http://howtoprogramwithjava.com/session55

  continue reading

112 episodes

Artwork
iconShare
 
Manage episode 163963608 series 1289539
Content provided by Best Java podcast on iTunes, learn about variables, control structures, collections, data types, des, Best Java podcast on iTunes, Learn about variables, and Control structures. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Best Java podcast on iTunes, learn about variables, control structures, collections, data types, des, Best Java podcast on iTunes, Learn about variables, and Control structures or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.
One-to-One Unidirectional Relationship

Since you’ve already learned about the ins and outs of how unidirectional one-to-many and bidirectional one-to-many relationships work, it’s time to learn about the One-to-One relationships.

We will start things off with the unidirectional One-to-One relationship and how it’s set up in Hibernate.

First thing is first, you need to understand how a One-to-One relationship is actually set up in a database. Once you understand that the child table declares the parent’s primary key as the child’s primary key, then we can get moving with the Hibernate stuff!

For this example, we are going to use the One-to-One relationship between an Employee and their Address. TheAddress table will be set up as follows:

For more information, please read the show notes via http://howtoprogramwithjava.com/session55

  continue reading

112 episodes

All episodes

×
 
Loading …

Welcome to Player FM!

Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.

 

Quick Reference Guide