BoneCP 0.7.1.RELEASE and hibernate 4.1.*

可紊 提交于 2019-12-10 16:43:47

问题


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:


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.



来源:https://stackoverflow.com/questions/10186999/bonecp-0-7-1-release-and-hibernate-4-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!