Example usage for org.springframework.jdbc.datasource.embedded EmbeddedDatabaseBuilder continueOnError

List of usage examples for org.springframework.jdbc.datasource.embedded EmbeddedDatabaseBuilder continueOnError

Introduction

In this page you can find the example usage for org.springframework.jdbc.datasource.embedded EmbeddedDatabaseBuilder continueOnError.

Prototype

public EmbeddedDatabaseBuilder continueOnError(boolean flag) 

Source Link

Document

Specify that all failures which occur while executing SQL scripts should be logged but should not cause a failure.

Usage

From source file:org.tdmx.lib.zone.service.MockZonePartitionIdInstaller.java

private void installZoneDB(String partitionId) {
    EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();
    builder = builder.setType(EmbeddedDatabaseType.HSQL).addScript("zoneDBPartition-schema.sql");
    builder.setName(partitionId);//from  w  w w.ja  va  2 s .  c o m
    builder.continueOnError(false);
    builder.ignoreFailedDrops(true);
    builder.build();
}