eclipse Duplicate generator named “ID_GENERATOR” defined in this persistence unit

来源:互联网 发布:太阳黑子数据网站 编辑:程序博客网 时间:2024/05/17 23:40


5down voteaccepted

I figured the problem, it was more of an eclipse JPA validation setting. To disable:

  1. Select Window » Preferences
  2. Expand Java Persistence » JPA » Errors/Warnings
  3. Click Queries and generators
  4. Set Duplicate generator defined to: Ignore
  5. Click OK to apply changes and close the dialog

You can also set the value to Warning instead of Ignore.


http://stackoverflow.com/questions/20941191/eclipse-duplicate-generator-named-id-generator-defined-in-this-persistence-uni

0 0
原创粉丝点击