1

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"
Davis Broda
  • 4,102
  • 5
  • 23
  • 37

0 Answers0