Class 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 Detail

      • DeleteDDLScriptBeforeCreating

        public DeleteDDLScriptBeforeCreating()
    • Method Detail

      • 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()