Why do we need mapping in hibernate?



Why do we need mapping in hibernate?..

Answer / Vaibhav Shrivastava

Mapping is needed in Hibernate to establish a connection between Java objects and the corresponding database tables. It allows Hibernate to understand how the data should be stored and retrieved from the database, simplifying the process of managing database interactions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is difference between eager and lazy loading?

1 Answers  


Can we use multiple database in hibernate?

1 Answers  


Define hibernate and hql?

1 Answers  


How to implement one to many relationships with annotation?

1 Answers  


What are the interfaces in hibernate?

1 Answers  


What is difference between persistent and transient objects?

1 Answers  


What is difference between opensession and getcurrentsession?

1 Answers  


How properties of a class are mapped to the columns of a database table in hibernate?

1 Answers  


What is a sessionfactory?

1 Answers  


What is cascadetype in hibernate annotations?

1 Answers  


How to achieve mapping in hibernate?

1 Answers  


What is @transient in hibernate?

1 Answers  


Categories