Questions tagged «persistence.xml»


1
persistence.xml不同的事务类型属性
在persistence.xml JPA配置文件中,可以有如下一行: <persistence-unit name="com.nz_war_1.0-SNAPSHOTPU" transaction-type="JTA"> 或有时: <persistence-unit name="com.nz_war_1.0-SNAPSHOTPU" transaction-type=”RESOURCE_LOCAL”> 我的问题是: transaction-type="JTA"和之间有什么区别transaction-type=”RESOURCE_LOCAL”? 我还注意到缺少事务类型的一些persistence.xml文件。这是对的吗?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.