diff --git a/org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/ResourceDatabasePopulator.java b/org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/ResourceDatabasePopulator.java index fe9659d09d6..3b29cdd56b5 100644 --- a/org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/ResourceDatabasePopulator.java +++ b/org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/ResourceDatabasePopulator.java @@ -31,22 +31,19 @@ import org.springframework.core.io.support.EncodedResource; import org.springframework.util.StringUtils; /** - * Populates a database from schema and test-data SQL defined in external resources. By default, looks for a schema.sql - * file and test-data.sql resource in the root of the classpath. + * Populates a database from SQL scripts defined in external resources. *
- * May be configured: The script will normally be loaded by classpath. There should be one statement
* per line. Any semicolons will be removed. Do not use this method to execute DDL if you expect rollback.
- * Call {@link #setSchemaLocation(Resource)} to configure the location of the database schema file.
- * Call {@link #setTestDataLocation(Resource)} to configure the location of the test data file.
- * Call {@link #setSqlScriptEncoding(String)} to set the encoding for the schema and test data SQL.
+ * Call {@link #addScript(Resource)} to add a SQL script location.
+ * Call {@link #setSqlScriptEncoding(String)} to set the encoding for all added scripts.
*/
public class ResourceDatabasePopulator implements DatabasePopulator {
private static final Log logger = LogFactory.getLog(ResourceDatabasePopulator.class);
- private String sqlScriptEncoding;
-
private List