What’s the usage of configuration interface in hibernate?



What’s the usage of configuration interface in hibernate?..

Answer / Richa Chaurasia

The Configuration interface in Hibernate is used to configure and create a SessionFactory, which manages connections to a database. It sets up the basic connection details, database dialect, and mapping resources. You can obtain an instance of Configuration by calling Configuration.standard() or Configuration.configure(), passing in a properties file that contains configuration settings.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is the importance of lifecycle and validatable interface in hibernate?

1 Answers  


What is version property in hibernate?

1 Answers  


Can I reuse the session in hibernate?

1 Answers  


What is difference between save and persist in hibernate?

1 Answers  


What is id generator in hibernate?

1 Answers  


What is hibernate criteria api?

1 Answers  


Hibernate Session is thread safe?

1 Answers  


What is detached entity in hibernate?

1 Answers  


What is jboss hibernate?

1 Answers  


What is hibernate mapping?

1 Answers  


What is hibernate entitymanagerfactory?

1 Answers  


Is hibernate session thread safe?

1 Answers  


Categories