在这个文件中,我必须将“class / class”放在“jta-data-source / jta-data-source”之上;否则,它报告XML错误。这是预期的吗?为什么订单很重要?
<persistence>
<persistence-unit name="OrderManagement">
<class>com.widgets.Customer</class>
<jta-data-source>jdbc/MyOrderDB</jta-data-source>
</persistence-unit>
</persistence>