在网上快速搜索会发现三四个变体,人们如何指定xmlns
和xsi:schemaLocation
在persistence.xml
.
指定 JPA 2.1 版的“正确”方式是什么?
我正在使用
<persistence version="2.1"
xmlns="http://xmlns.jcp.org/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">