Specify @column(name=tempname) in application.properties file

200 Views Asked by At

I am using spring-boot and hibernate.I want to externalize entity column names in application.properties file or xml file. something like,

in entity class,

@Column(name = @Value("${tablename.prop1value}")) //not possible
private String prop1;

in application.properties

tablename.prop1value="columnname"
0

There are 0 best solutions below