記錄解決問(wèn)題
- 問(wèn)題提示
This inspection controls whether the Persistence QL Queries are error-checked - 網(wǎng)上的文章無(wú)一例外是屏蔽該檢查項(xiàng)龄恋,這就違背了Idea code check的初衷侧甫,最后在StackOverFlow找到問(wèn)題的
- 解決方法:
1.In Project structure settings (ctrl+alt+shift+s), select Facets and Add.
2.Select JPA
3.Select the module containing your mappings/annotated entities
4.In the Modules view, select the module in question and the JPA facet underneath
5.Add a reference to your descriptor (persistence.xml/orm.xml)
6.Select your JPA provider from the dropdown