如何使用hibernate与MS Access? [英] How can I use hibernate with MS Access?

查看:244
本文介绍了如何使用hibernate与MS Access?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用hibernate与MS Access。我应该使用哪个方言,你可以给我一个MS Access示例hibernate配置文件。

I want to use hibernate with MS Access. Which dialect should I use and can you give me a sample hibernate configuration file with MS Access?

推荐答案

我们需要 HXTT 的方言。您需要使用HXTT提供的 hibernate支持包。还有一个示例项目,您可以检查一个完全正常的示例。

For MS Access, you'll need the dialect from HXTT. You'll need to use the hibernate support package provided by HXTT. There is also a sample project that you can check for a fully working example.

下面是一个最小配置示例:

Below, a sample minimal configuration:

# Hxtt Access dialect sample
hibernate.dialect=com.hxtt.support.hibernate.HxttAccessDialect
hibernate.connection.driver_class=com.hxtt.sql.access.AccessDriver
hibernate.connection.url=jdbc:access:///c:/yourAccessDirectory



PS:如果MS Access不是写在石头要求,也许你应该考虑使用其他的东西...好吧,什么。

PS: If MS Access is not a written in stone requirement, maybe you should consider using something else like... well, anything.

这篇关于如何使用hibernate与MS Access?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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