Go offline with the Player FM app!
Hibernate @ManyToMany Unidirectional and Bidirectional
Manage episode 163963607 series 1289539
The Many-to-Many relationship can be best described by example.
The example we’re going to use is that of the relationship between an Author and a Book.
Authors publish Books, and Books have Authors. Any one Author can publish many Books, and any one Book can be published by many Authors, so this is why it is a many to many relationship.
Other examples of the many to many relationship are Students to Courses and Employees to Projects.
Let’s take a look at how the unidirectional many-to-many relationship is created using Hibernate... for more info please visit http://howtoprogramwithjava.com/session56
110 episodes
Manage episode 163963607 series 1289539
The Many-to-Many relationship can be best described by example.
The example we’re going to use is that of the relationship between an Author and a Book.
Authors publish Books, and Books have Authors. Any one Author can publish many Books, and any one Book can be published by many Authors, so this is why it is a many to many relationship.
Other examples of the many to many relationship are Students to Courses and Employees to Projects.
Let’s take a look at how the unidirectional many-to-many relationship is created using Hibernate... for more info please visit http://howtoprogramwithjava.com/session56
110 episodes
All episodes
×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.