【发布时间】:2014-04-04 19:25:24
【问题描述】:
这个标签在 eclipse kepler 和 wildfly 8.0 中不起作用,想要使用 jpa 2.1 这个标签是 eclipse 自动生成的。
<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">
如果我尝试使用这个标签
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="2.0">
一切正常。
请帮我解决这个问题。
【问题讨论】:
标签: persistence eclipse-kepler jpa-2.1