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.

0

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
Avatar
Permanently deleted user

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

0
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

Thank you.

0
Avatar
Permanently deleted user

Thank you.

0

请先登录再写评论。