How create hibernate cfg xml in eclipse?



How create hibernate cfg xml in eclipse?..

Answer / Mohammad Sajid Husain

To create a Hibernate configuration XML file (hibernate.cfg.xml) in Eclipse, follow these steps:
1. Create a new file under the project src/main/resources directory.
2. Set the filename as hibernate.cfg.xml.
3. Configure the properties such as dialect, connection URL, username, and password.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

Is hibernate obsolete?

1 Answers  


What are different states of an entity bean?

1 Answers  


Define criteria in terms of hibernate.

1 Answers  


What is query interface in hibernate?

1 Answers  


What is a bidirectional relationship?

1 Answers  


What is the role of JMX in hibernate?

1 Answers  


What is hibernate in j2ee?

1 Answers  


Explain the transaction object in hibernate?

1 Answers  


What is mapping class in hibernate?

1 Answers  


What is orm and odm?

1 Answers  


What is the use of @transient annotation?

1 Answers  


What is hbm in hibernate?

1 Answers  


Categories