What are different types of associations in hibernate?



What are different types of associations in hibernate?..

Answer / Raja Babu Singh

Hibernate supports several types of associations: OneToOne, OneToMany, ManyToOne, and ManyToMany. Each association has a corresponding annotation (such as @OneToOne, @OneToMany, etc.) that defines the relationship between entities.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

Mention some of the advantages of using orm over jdbc.

1 Answers  


What do you mean by named – sql query?

1 Answers  


Is active record an orm?

1 Answers  


Do I need hibernate cfg xml?

1 Answers  


Explain the difference between criteria and criterion in hibernate?

1 Answers  


Which annotation is used to declare a class as a hibernate bean ?

1 Answers  


What is the file extension you use for hibernate mapping file?

1 Answers  


What entries we make in the hibernate config file if we are not using hbm files but annotations?

1 Answers  


How to configure hibernate in spring mvc?

1 Answers  


What is a pure relational orm?

1 Answers  


What are the advantages of using hibernate over jdbc?

1 Answers  


How can we call stored procedure in hibernate using named query?

1 Answers  


Categories