Eclipse Kepler JPA错误 [英] Eclipse Kepler JPA errors

查看:173
本文介绍了Eclipse Kepler JPA错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Eclipse Kepler(Build id:20130614-0229)。
当我尝试编译我的项目时,我有大量的JPA相关错误。
我猜他们来自Dali Java Persistence Tools插件,我可以在插件列表(版本3.3.1)中看到。



我的问题是:



1)任何想法,如果这个版本的Eclipse / Dali有一个众所周知的问题?我不仅在我自己的代码中收到错误,而且在开源项目中也应该是正确的,例如odata4j-examples:
在持久性单元中找到重复的实体名称Employees。实体名称必须是唯一的。 Employees.java / odata4j-examples / src / main / java / org / odata4j / examples / producer / jpa / addressbook第10行JPA问题



2)有没有办法完全禁用JPA错误?
浏览网络我发现很多人指向Eclipse>首选项> Java持久性,但是我没有任何名为Java持久性或JPA的菜单。



非常感谢!

解决方案

您可以转到窗口 - >首选项 - >验证
取消选中暂停所有验证器如果需要
取消选中JPA验证器


I've installed Eclipse Kepler (Build id: 20130614-0229). When I try to compile my projects I have tons of JPA related errors. I'm guessing they come from the Dali Java Persistence Tools plug-in, which I can see in the plug-ins list (version 3.3.1).

My questions are:

1) any idea if there is a well known issue with this version of Eclipse/Dali? I'm not only getting errors in my own code, but also in open source projects that should be correct, for example odata4j-examples: Duplicate entity name "Employees" found in the persistence unit. Entity names must be unique. Employees.java /odata4j-examples/src/main/java/org/odata4j/examples/producer/jpa/addressbook line 10 JPA Problem

2) is there a way to disable JPA errors altogether? Browsing on the net I found many people pointing to Eclipse > Preferences > Java Persistence, but I don't have any menu called "Java Persistence" or "JPA".

Many thanks!

解决方案

You can go to Window -> Preferences -> Validation Uncheck 'Suspend all validators' if needed Uncheck JPA validator

这篇关于Eclipse Kepler JPA错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆