I have this in my application.properties
:
spring.jpa.properties.hibernate.default_schema=dbo
However, I sometimes need to disable this, since I have the same entities in two different database servers. One of them requires the schema to be present, the other one requires the schema to not be present.
Is there a way to programmatically disable or override some of the properties in application.properties
? I'd like to keep the other properties, i.e. I'd not want to specify everything programmatically, just this one.