Class DeleteDDLScriptBeforeCreating

java.lang.Object
org.tailormap.api.configuration.ddl.DeleteDDLScriptBeforeCreating

@Configuration @ConfigurationProperties(prefix="spring.datasource") @ConditionalOnProperty(name="spring.jpa.properties.javax.persistence.schema-generation.scripts.delete-first", havingValue="true") public class DeleteDDLScriptBeforeCreating extends Object
Delete the file in the "javax.persistence.schema-generation.scripts.create-target" property because it is appended to instead of overwritten, which we don't want.
  • Constructor Details

    • DeleteDDLScriptBeforeCreating

      public DeleteDDLScriptBeforeCreating()
  • Method Details

    • setUrl

      public void setUrl(String url)
    • setUsername

      public void setUsername(String username)
    • setPassword

      public void setPassword(String password)
    • getDataSource

      @Bean public DataSource getDataSource()
    • delete

      @PostConstruct public void delete()