In my spring boot app, I am using spring data jpa. In the entity, I need to pick schema name from config and the schema would change and needs to be configurable. I tried the following but it doesn't work
@Entity
@Table(schema="${schema.name}", name="MyTable")
schema.name is define in application.properties file
I get "could not extract resultset" error
Is there a way to accomplish this ?
===============EDIT===============
@Entity
@Table(name="MyTable")
public class MyData {
@Id
@Column(name="MyID")
@JsonProperty("MyID")
private String MyID;
@Column(name="number")
@JsonProperty("number")
private String number;
@Column(name="value")
@JsonProperty("value")
private String value;
......getter and setters go here.....
}