Go to File -> Project Structure -> Modules.
Add new Hibernate module.
Right click on the desired module -> Add -> Hibernate.
Select the newly created Hibernate configuration option, and click the (+) sign in the right pane to create hibernate.cfg.xml file.
Go to File -> Project ...