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.

5 comments
Comment actions Permalink

Just suppress the inspection for your class.

Thai Dang Vu wrote:

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.

0
Comment actions Permalink

Could you please give a little more detail on doing that (suppressing inspection)?

0
Comment actions Permalink

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:

Could you please give a little more detail on doing that (suppressing inspection)?

0

Please sign in to leave a comment.