eclipse 重新載入專案遇到的問題----The entity has no primary key attribute defined
原文地址::https://blog.csdn.net/baidu_26550817/article/details/51752085
相關文章
1、JPA Error : The entity has no primary key attribute defined----https://stackoverflow.com/questions/13190997/jpa-error-the-entity-has-no-primary-key-attribute-defined
The entity has no primary key attribute defined
實體沒有定義主鍵屬性
初步解決辦法:
Windows->Persistence->Java Persistence->JPA->Errors/Warnings->Type,將選項Entity has no primary key設為警告或更低的提示級別。(錯誤提示變成了警告提示,治標不治本)
Referenced file contains errors (,,,,,,,,,,,,,,,,,,,). For more information, right click on the message in the Problems View and select “Show Details…”
將 Preferences > XML > XML Files > Validation中”Honour all XML schema locations”前的對號去掉。禁用指向不同schema位置相同名稱空間引用的驗證,僅以第一次找到的可驗證的XML檔案為結果。
---------------------
作者:tsf_1993
來源:CSDN
原文:https://blog.csdn.net/baidu_26550817/article/details/51752085
版權宣告:本文為博主原創文章,轉載請附上博文連結!