是否可以在WAS Liberty Profile中将Hibernate 5用作JPA引擎 [英] Is it possible to use Hibernate 5 as JPA engine in WAS Liberty Profile
问题描述
我在Liberty项目中使用4.3.11,但是Hibernate在版本5中解决了一个错误.我曾尝试升级,但遇到了不同的异常.
I use 4.3.11 in my Liberty projects but there is a bug with Hibernate solved in version 5. I have tried upgrading but I get different exceptions.
有人使用带有Liberty Profile的Hibernate 5.x.x吗?您要在server.xml的dataSource库中包括哪些jar?
Anybody is using Hibernate 5.x.x with Liberty Profile? What jars are you including in the dataSource library in server.xml?
谢谢
推荐答案
从Hibernate 5.2.13开始,已经为Liberty提供了适当的事务集成.如果您能够升级到此版本的Hibernate,它将被自动检测并应用,不再需要指定hibernate.transaction.jta.platform
.
As of Hibernate 5.2.13, a proper transaction integration has been delivered for Liberty. If you are able to upgrade to this version of Hibernate, then it will be detected and applied automatically, and not necessary to specify hibernate.transaction.jta.platform
anymore.
有关更多详细信息,请参见此Hibernate问题: https://hibernate.atlassian.net/browse /HHH-11571
See this Hibernate issue for more details: https://hibernate.atlassian.net/browse/HHH-11571
这篇关于是否可以在WAS Liberty Profile中将Hibernate 5用作JPA引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!