BoneCP 0.7.1.RELEASE和hibernate 4.1。* [英] BoneCP 0.7.1.RELEASE and hibernate 4.1.*

查看:210
本文介绍了BoneCP 0.7.1.RELEASE和hibernate 4.1。*的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将BoneCP添加到hibernate中并具有:

  java.lang.ClassNotFoundException:org.hibernate.connection.ConnectionProvider 

我无法在新的hibernate包中找到这个接口,并且有两个问题:



1)你可以分享链接或例子如何用hibernate 4.1手动配置BoneCP 0.7.1。*? (我只在hibernate.cfg.xml中添加了connection.provider_class = com.jolbox.bonecp.provider.BoneCPConnectionProvider)
$ b <2>有人测试了BoneCP 0.8.0-alpha1?这对新版本来说很好,但在版本中有可怕的alpha1。

感谢您的支持。

解决方案

<1> JVM无法找到 ConnectionProvider 接口,因为它移动到 Hibernate 3 Hibernate 4 ,因此您需要使用BoneCP 0.8.0-alpha1。



<2>到目前为止,它没有给我带来任何问题,但其他人应该贡献他们的经验。


I try to add BoneCP to hibernate and have:

java.lang.ClassNotFoundException: org.hibernate.connection.ConnectionProvider

I couldn't find this interface in new hibernate packages and have 2 questions :

1) Could you share link or example how to manually configure BoneCP 0.7.1 with hibernate 4.1.*? (I only added connection.provider_class=com.jolbox.bonecp.provider.BoneCPConnectionProvider in hibernate.cfg.xml)

2) Someone tested BoneCP 0.8.0-alpha1? It's work good with new hibarnate, but has scary "alpha1" in version

Thank for your time.

解决方案

1) The JVM cannot find the ConnectionProvider interface because it moved to a different package from Hibernate 3 to Hibernate 4, so you'll need to use BoneCP 0.8.0-alpha1.

2) So far it hasn't caused me any problems, but others should contribute their experience.

这篇关于BoneCP 0.7.1.RELEASE和hibernate 4.1。*的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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