To use Hibernate you need to create a helper class that handles startup and that accesses Hibernate's SessionFactory to obtain a Session object so that you can load and store objects. The helper class calls configure() and loads the hibernate.cfg.xml configuration file. The helper class then builds the SessionFactory to obtain the Session object.
To create the HibernateUtil.java helper class:
When you click Finish, the file HibernateUtil.java opens in the Source Editor. You do not need to edit the file.