简体   繁体   中英

Hibernate with SQL server 2014

Hi i am new to Hibernate. I am using SQL Server 2014 and getting below error :

org.hibernate.HibernateException: Dialect class not found: org.hibernate.dialect.SQLServer2012Dialect

My hibernate.cgf.xml :

配置文件

Jars that I have included :

随附的罐子

Please help me fix that error.

Maybe the error is on the propertyname? Try:

<property name="hibernate.dialect"> instead of <property name="dialect">

or maybe

<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>

Let me know if it works.

(Have you tried removing the dialect line? see what happens..)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM