简体   繁体   English

使用SQL Server 2014休眠

[英]Hibernate with SQL server 2014

Hi i am new to Hibernate. 嗨,我是Hibernate的新手。 I am using SQL Server 2014 and getting below error : 我正在使用SQL Server 2014并出现以下错误:

org.hibernate.HibernateException: Dialect class not found: org.hibernate.dialect.SQLServer2012Dialect org.hibernate.HibernateException:未找到方言类:org.hibernate.dialect.SQLServer2012Dialect

My hibernate.cgf.xml : 我的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"> <property name="hibernate.dialect">而不是<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..) (您是否尝试过删除方言行?看看会发生什么。。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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