'Pass value from properties to @Column annotation
Helo, Is it possible to pass value from application.properties
to @Column
annotation in entity?
I tried this:
@Column(name = "${foo.column-name}")
private String foo;
and this:
@Formula(value= "${foo.column-name}")
private String foo;
Is any way to make it work?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|