Hibernate 4 Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

后端 未结 12 1920
青春惊慌失措
青春惊慌失措 2021-01-17 14:25

I am using Hibernate latest version 4.3.5.Final.

My hibernate.cfg.xml file content:



        
12条回答
  •  清歌不尽
    2021-01-17 14:44

    You cal also fix the issue by creating the sesisonFactory this way.

    SessionFactory sessionFactory = new
    Configuration().configure().buildSessionFactory(
    new StandardServiceRegistryBuilder().applySettings(new
    Configuration().configure().getProperties()).build());
    

提交回复
热议问题