Example usage for org.hibernate.tool.hbm2ddl SingleLineSqlCommandExtractor SingleLineSqlCommandExtractor

List of usage examples for org.hibernate.tool.hbm2ddl SingleLineSqlCommandExtractor SingleLineSqlCommandExtractor

Introduction

In this page you can find the example usage for org.hibernate.tool.hbm2ddl SingleLineSqlCommandExtractor SingleLineSqlCommandExtractor.

Prototype

SingleLineSqlCommandExtractor

Source Link

Usage

From source file:py.una.pol.karaku.test.cucumber.DatabasePopulatorCucumberExecutionListener.java

License:Open Source License

/**
 * @param testContext/*from w w w  . j  a va 2s . c  o  m*/
 * @param sqlFiles
 */
private void executeSQLFiles(TestContext testContext, SQLFiles sqlFiles) {

    if (sqlFiles == null) {
        return;
    }
    List<String> files = getFiles(testContext, sqlFiles);
    SingleLineSqlCommandExtractor slsce = new SingleLineSqlCommandExtractor();

    for (String file : files) {
        executeSQL(testContext, file, slsce);
    }
}