我的 persistence.xml 中有这个 hibernate.transaction.manager_lookup_class
属性,然后在运行我的应用程序时收到此警告消息。
使用已弃用的 org.hibernate.transaction.TransactionManagerLookup 策略 [hibernate.transaction.manager_lookup_class],使用较新的 org.hibernate.service.jta.platform.spi.JtaPlatform 策略 [hibernate.transaction.jta.platform]
我不知道这两个属性有什么不同?它们有什么用?
谁能解释一下它们的区别和用途
我正在使用 hibernate 4 和 websphere 8.5
最佳答案
除了事务管理器之外,JtaPlatform
还提供更多类似事务的集成,特别是:
- 如何找到事务管理器
- 如何进行用户交易
- 如何注册事务同步
您可以在 GitHub 上查看完整的 JtaPlatform
界面:https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/engine/transaction/jta/platform/spi/JtaPlatform.java
关于java - hibernate.transaction.manager_lookup_class VS hibernate.transaction.jta.platform,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54088461/