如何在 MS Access 中使用休眠? [英] How can I use hibernate with MS Access?

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

问题描述

我想在 MS Access 中使用休眠.我应该使用哪种方言,你能给我一个带有 MS Access 的示例休眠配置文件吗?

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?

推荐答案

对于 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.

下面是最小配置示例:

# 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.

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

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