日期:2014-05-20  浏览次数:20685 次

hibernater建立映射的时候出错了,解决不了,请帮忙
错误提示:an internal error occurred during:"generating artifacts" 连接的是access数据库,连接已经打开,用的驱动是导入的jre/lib/rt.jar

环境是刚装的,myeclipse5.5。插件式安装 建立映射最后老出错。在网上也查了些资料,但是好象都解决不了。请大家帮帮忙

------解决方案--------------------
驱动版本的问题
------解决方案--------------------
参考如下:
下载2个jar包,一个是Access的JDBC驱动包;另一个是数据库方言包,里面有支持Access方言的类。

下载地址:http://www.hxtt.com/access.zip,http://www.hxtt.com/test/hibernate.zip。

配置如下:

<property name="hibernate.dialect">com.hxtt.support.hibernate.HxttAccessDialect</property>
<property name="hibernate.connection.url">jdbc:access:///f:/mdbfiles/aaa.mdb</property>
<property name="hibernate.connection.driver_class">com.hxtt.sql.access.AccessDriver</property>