How create hibernate cfg xml?



How create hibernate cfg xml?..

Answer / Preeti Sharma

To configure Hibernate using XML, you need to create a configuration file (hibernate.cfg.xml) in the root directory of your project. The file contains settings for various aspects such as database connection properties, mappings, dialects, etc.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What are the different functionalities supported by hibernate?

1 Answers  


What is the difference between load() and get() method?

1 Answers  


What is referential integrity and why is it important?

1 Answers  


What is the purpose of orm?

1 Answers  


What is mappedby?

1 Answers  


Describe the important interfaces of hibernate framework?

1 Answers  


Is hibernate an implementation of jpa?

1 Answers  


What is the use of dialect in hibernate?

1 Answers  


Difference between hibernate session merge() vs update()?

1 Answers  


What is the use of sessionfactory in hibernate?

1 Answers  


What is metadata in hibernate?

1 Answers  


Write a code to do the component mapping in hibernate.

1 Answers  


Categories