这是我第一次使用Hiberante
.
我正在尝试session
使用以下内容在我的应用程序中创建 Hibernate:
Session session = HiberanteUtil.getSessionFactory().openSession();
它给了我这个错误:
org.hibernate.HibernateException: /hibernate.cfg.xml not found
但是我的项目中没有hibernate.cfg.xml
文件。
如何在没有此文件的情况下创建会话?