Hibernate 无法确定方言

Hibernate cannot determine dialect

我正在使用 hibernate 4。3.x 连接到 oracle 数据库。

但是在创建映射文件时抛出

"Unable to determine Dialect to use [ name = Oracle , majorVersion = 12 ]..."

这应该是休眠中的问题(根据 google)3.x

我该如何解决这个问题? 谢谢

//编辑

配置属性:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
  <session-factory>
    <property name="hibernate.connection.driver_class">oracle.jdbc.OracleDriver</property>
    <property name="hibernate.connection.url">jdbc:oracle:...</property>
    <property name="hibernate.connection.username">name</property>
    <property name="hibernate.connection.password">Passwd</property>
    <mapping class="Nemocnica" package="Model"/>
  </session-factory>
</hibernate-configuration>

hibernate 检测 Oracle 12 方言似乎有问题。

使用:

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

Oracle 10 方言也应该适用于 Oracle 12。