What is the root element for the hibernate mapping file?



What is the root element for the hibernate mapping file?..

Answer / Neeraj P Singh

The root element of a Hibernate mapping file (hbm.xml) is <hibernate-mapping>. This element contains other elements such as <class>, <id>, and <many-to-one> that define the schema, primary key, and associations for the entities.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is the default cache in hibernate?

1 Answers  


How can we reattach any detached objects in Hibernate?

1 Answers  


When do you use merge() and update() in hibernate?

1 Answers  


Why hibernate is used in java?

1 Answers  


What is @manytoone?

1 Answers  


What are the core interfaces are of hibernate framework?

1 Answers  


How can we reduce database write action times in Hibernate?

1 Answers  


What is a hibernatetemplate?

1 Answers  


What’s difference between managed associations and hibernate associations?

1 Answers  


Is a relationship in hibernate?

1 Answers  


How can we map the classes as immutable?

1 Answers  


What is hibernate qbc api?

1 Answers  


Categories