What is an example of a one to many relationship?



What is an example of a one to many relationship?..

Answer / Kriyanshu Saraswat

A simple example of a one-to-many (1:N) relationship in Hibernate is when a single Student can have multiple Addresses. In the database schema, this would be represented as a foreign key column in the Address table pointing to the ID of the Student.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

How to insert date in database using hibernate?

1 Answers  


What are cascade types in hibernate?

1 Answers  


Why do we need mapping?

1 Answers  


What is the difference between merge and merge join in ssis?

1 Answers  


Why do we need orm tools like hibernate?

1 Answers  


What is tag library descriptor?

1 Answers  


What is transaction management in hibernate?

1 Answers  


What are the key attributes?

1 Answers  


What is an sql dialect?

1 Answers  


What are the different types of inheritance in hibernate?

1 Answers  


What is callback interface?

1 Answers  


What is the difference between sessionfactory and session in hibernate?

1 Answers  


Categories