Hibernate 的 MariaDB 方言类名称是什么? [英] What is the MariaDB dialect class name for Hibernate?

查看:34
本文介绍了Hibernate 的 MariaDB 方言类名称是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hibenate 我正在使用 MariaDB 但我找不到 MariaDB 的方言类名称.

In Hibenate I am using MariaDB but I couldn't find the dialect class name of MariaDB .

在Hibernate中,MySQL5方言的名字是

In Hibernate, MySQL5 dialect's name is

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

对于 Oracle 10g

For Oracle 10g

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

MariaDB 的方言类名称是什么?

What is the dialect class name for MariaDB?

推荐答案

正如在这里宣布,从 Hibernate ORM 5.2.8(2017 年 2 月 15 日左右)开始,方言

As announced here, starting with Hibernate ORM 5.2.8 (around Feb 15, 2017), the dialects

org.hibernate.dialect.MariaDB53Dialect

org.hibernate.dialect.MariaDBDialect

可用.公告的结论是

如果您使用 MariaDB,最好使用 MariaDB-specific从现在开始使用方言,因为它更容易匹配 MariaDB具有相应 Hibernate 方言的版本.

If you are using MariaDB, it’s best to use the MariaDB-specific Dialects from now on since it’s much easier to match the MariaDB version with its appropriate Hibernate Dialect.

这篇关于Hibernate 的 MariaDB 方言类名称是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆