我目前正在开发一个从Hibernate 3.x升级到5.x的项目.现在,hibernate配置xml中的一个属性如下:
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
Run Code Online (Sandbox Code Playgroud)
在Hibernate 5中,上面定义的这个特定类以及org.hibernate.transaction包似乎不存在.这个类在版本3.x中可用(https://docs.jboss.org/hibernate/envers/3.6/javadocs/org/hibernate/transaction/JDBCTransactionFactory.html).根据Hibernate 5 api文档没有这样的类(https://docs.jboss.org/hibernate/orm/5.0/javadocs/)
Hibernate 5是否弃用了这个特定的包以及它所包含的所有类?我检查了所有必需的Hibernate 5罐,但无法在任何地方找到这个类org.hibernate.transaction.JDBCTransactionFactory.什么可能是Hibernate 5配置中这个类的合适替代品?
谷歌搜索我的成功有限,所以任何答案都将不胜感激!