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?
Example:
@Column(name = "COLUMN_NAME")
private String columnName;
it works (i.e. field name and column name are checked and validated).
While
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.
Regards,
federico
Please sign in to leave a comment.