簡體   English   中英

Hibernate 4.3.x是否支持JTA 1.1?

[英]Does Hibernate 4.3.x support JTA 1.1?

Hibernate 4.3.x的maven依賴是JTA 1.2。 出於許可證原因,我們更願意使用Geronimo的JTA 1.1。

但是,我無法找到JTA 1.1是否與Hibernate 4.3.x兼容的明確指示。 我看到在Hibernate 5.x中,依賴關系已經變回JTA 1.1

誰能確認Hibernate 4.3.x是否與JTA 1.1兼容?

我能找到的最好的是這里的build.gradle文件中的這個片段 它適用於4.3.11.final,如果它不在您當前可以嘗試添加的版本中,則看起來像是一種解決方法。

instruction 'Import-Package',
                // Temporarily support JTA 1.1 -- Karaf and other frameworks still
                // use it.  Without this, the plugin generates [1.2,2).
                'javax.transaction;version="[1.1,2)"',
                // Tell Gradle OSGi to still dynamically import the other packages.
                // IMPORTANT: Do not include the * in the modules' .gradle files.
                // If it exists more than once, the manifest will physically contain a *.
                '*'

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM