Revision b00f650a
Added by Andreas Müller over 6 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/greece/GreeceImageActivator.java | ||
---|---|---|
14 | 14 |
import org.apache.log4j.Logger; |
15 | 15 |
|
16 | 16 |
import eu.etaxonomy.cdm.app.common.CdmDestinations; |
17 |
import eu.etaxonomy.cdm.database.DatabaseTypeEnum; |
|
17 | 18 |
import eu.etaxonomy.cdm.database.DbSchemaValidation; |
18 | 19 |
import eu.etaxonomy.cdm.database.ICdmDataSource; |
19 | 20 |
import eu.etaxonomy.cdm.io.common.CdmDefaultImport; |
... | ... | |
55 | 56 |
|
56 | 57 |
private void doImport(ICdmDataSource cdmDestination){ |
57 | 58 |
|
59 |
DbSchemaValidation schemaVal = cdmDestination.getDatabaseType() == DatabaseTypeEnum.H2 ? DbSchemaValidation.CREATE : DbSchemaValidation.VALIDATE; |
|
58 | 60 |
URI source = greekChecklist(); //just any |
59 | 61 |
//make Source |
60 | 62 |
MediaExcelImportConfigurator config = MediaExcelImportConfigurator.NewInstance(source, cdmDestination); |
61 | 63 |
config.setCheck(check); |
62 |
config.setDbSchemaValidation(DbSchemaValidation.VALIDATE);
|
|
64 |
config.setDbSchemaValidation(schemaVal);
|
|
63 | 65 |
config.setSourceReference(getSourceReference()); |
64 | 66 |
config.setNomenclaturalCode(NomenclaturalCode.ICNAFP); |
65 | 67 |
|
Also available in: Unified diff
SchemaCreate for GreeceImageUpdater with H2