Can you declare mappings for multiple classes in one mapping file?



Can you declare mappings for multiple classes in one mapping file?..

Answer / Kirti Sagar

Yes, it is possible to declare mappings for multiple classes in a single Hibernate mapping file. Each class will have its own XML or annotation definition within the file.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

Which is better spring jdbctemplate or hibernate for web development?

1 Answers  


What is hibernate unidirectional and bidirectional?

1 Answers  


Define hibernate?

1 Answers  


How to bind hibernate session factory to jndi?

1 Answers  


What are different types of associations in hibernate?

1 Answers  


Define criteria in terms of hibernate.

1 Answers  


What are bidirectional relationships?

1 Answers  


Is a relationship in hibernate?

1 Answers  


What is difference between jdbc and hibernate?

1 Answers  


How can we reattach any detached objects in Hibernate?

1 Answers  


How to check hibernate version in spring boot?

1 Answers  


What is unidirectional and bidirectional?

1 Answers  


Categories