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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
void
setPassword
(String password) void
void
setUsername
(String username)
-
Constructor Details
-
DeleteDDLScriptBeforeCreating
public DeleteDDLScriptBeforeCreating()
-
-
Method Details
-
setUrl
-
setUsername
-
setPassword
-
getDataSource
-
delete
@PostConstruct public void delete()
-