【问题标题】:JPA 2.1 no work in eclipse keplerJPA 2.1 在 Eclipse 开普勒中不起作用
【发布时间】: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


    【解决方案1】:

    根据这个参考:How to specify JPA 2.1 in persistence.xml? 你的标签看起来不错。

    能否请您发布 Eclipse 为 JPA 2.1 标签提供的错误?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-08-25
      • 1970-01-01
      • 1970-01-01
      • 2013-08-01
      • 1970-01-01
      • 2013-06-24
      • 2014-09-24
      相关资源
      最近更新 更多