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

前端 未结 3 823
天涯浪人
天涯浪人 2021-01-18 08:25

I\'m currently having this issue which I don\'t have before I migrated to eclipse-jee-kepler. What I have:

I have 2 classes, base and the extending class:

         


        
3条回答
  •  渐次进展
    2021-01-18 08:36

    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.

提交回复
热议问题