JPA column mapping not resolved with constants values

Hi all,

is there a way to let IntelliJ resolve JPA-DB mapping when the @Column annotation doesn't have literals but constant value in name attribute?


@Column(name = "COLUMN_NAME")
private String columnName;

it works (i.e. field name and column name are checked and validated).


private static final String DB_COLUMN_NAME = "COLUMN_NAME";

@Column(name = DB_COLUMN_NAME)
private String columnName;

it doesn't.

(The annoying part is that new Eclipse version is actually managing also this scenario...)

Thanks in advance for any useful feedback.



Please sign in to leave a comment.