Jak określić JPA 2.1 w persistence.xml?
Szybkie wyszukiwanie w sieci ujawnia 3 lub 4 warianty, które określają ludziexmlns
ixsi:schemaLocation
wpersistence.xml
.
Jaki byłby „prawidłowy” sposób określenia JPA w wersji 2.1?
Używam:
<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">