Hibernate 4 ConnectionProvider Class not found

后端 未结 1 374
无人及你
无人及你 2020-12-07 02:55

I just updated Hibernate in my application to 4.3.4 (from 3.X), which caused some problems. The first was the new method of creating a sessionFactory, which I resolved.

相关标签:
1条回答
  • 2020-12-07 03:40

    Hibernate keeps changing the package containing the ConnectionProvider base class. It changed from version 3 to 4 and has changed again with verson 4.3. As @teresa-carrigan mentions in a comment to this answer, you'll have to compile the latest BoneCPConnectionProvider.java (currently supporting Hibernate 4.3.1) and use that.
    Or use Hibernate version 4.2.12.Final and see if that works with BoneCP 0.8 (as explained in the aforementioned answer).

    0 讨论(0)
提交回复
热议问题