关闭Eclipse中缺少no-arg构造函数的"错误"

abc*_*abc 6 java eclipse jpa openjpa

我正在使用open-jpa,因为我们知道它随增强器一起提供,可以在增强期间创建非私有的无参数构造函数.它有效,但是日食有问题.它非常合理,它不知道在ant构建期间会发生什么,所以是否有可能关闭这个The Java class for mapped type ... must define a non-private zero-argument constructor与@Entity注释绑定的特定错误?

Fre*_*ace 4

这对我有用(Eclipse Mars.1 Release 4.5.1)

Project / Properties / JPA / Errors/Warnings
Enable Project Specific Settings
 Type
  ID class must have a public no-arg constructor (change from Error to something else)
Run Code Online (Sandbox Code Playgroud)