user8413857
user8413857

Reputation: 11

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

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"

Upvotes: 1

Views: 201

Answers (0)

Related Questions