Howto exclude some entity Java files from JPA check?
I write some entity Java files but they are not mapped to any table, they are used as the result classes for some named native query. How can I exclude them from the JPA validation because, right now, 8733 gives red on all the column names ('Cannot resolve column ....')?
Regards.
Please sign in to leave a comment.
Just suppress the inspection for your class.
Thai Dang Vu wrote:
Could you please give a little more detail on doing that (suppressing inspection)?
Place the caret on the warning/error in the editor and press alt-enter (or click the light bulb).
Then click on one of the right-pointing arrows to get a choice to suppres the inspection (for statement or class).
Thai Dang Vu wrote:
Thank you.
Thank you.