Visit complete Spring Boot roadmap

← Back to Topics List

Relationships

Using hibernate, if we want to have relationship between two entities, there must exist a foreign key relationship between the tables, we call it as Referential integrity. The main advantage of having relationship between objects is, we can do operation on one object, and the same operation can transfer onto the other object in the database.

Here are the four tyeps of relationships we can have between objects in Hibernate.

  • One-To-One
  • Many-To-One
  • Many-To-Many
  • One-To-Many

Visit the following links for more information:

Roadmaps Guides Videos About YouTube

roadmap.sh by Kamran Ahmed

Community created roadmaps, articles, resources and journeys to help you choose your path and grow in your career.

© roadmap.sh · FAQs · Terms · Privacy