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 |
How to insert date in database using hibernate?
What are cascade types in hibernate?
Why do we need mapping?
What is the difference between merge and merge join in ssis?
Why do we need orm tools like hibernate?
What is tag library descriptor?
What is transaction management in hibernate?
What are the key attributes?
What is an sql dialect?
What are the different types of inheritance in hibernate?
What is callback interface?
What is the difference between sessionfactory and session in hibernate?