Question: how to create hibernate.cfg.xml in netbeans?
Answer: Right-click the Source Packages node in the Projects window and choose New > Other to open the New File wizard.
Select Hibernate Reverse Engineering Wizard in the Hibernate category. ... 
Specify hibernate. ... 
Select hibernate.