Revision 1064bb88
Added by Andreas Müller about 5 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/greece/GreeceWillingActivator.java | ||
---|---|---|
37 | 37 |
|
38 | 38 |
static final ICdmDataSource cdmDestination = CdmDestinations.localH2(); |
39 | 39 |
// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_greece_checklist_production(); |
40 |
boolean doCheckNames = false; |
|
40 | 41 |
|
41 |
private static final UUID sourceUuid = UUID.fromString("b96b8a10-e2a5-4a01-b2f2-435a59a7a269");
|
|
42 |
private static final UUID sourceUuid = UUID.fromString("70efe59f-8b0c-4f83-b54e-2a16f567fe8e");
|
|
42 | 43 |
|
43 |
private static final String fileName = "WillingImport.xlsx"; |
|
44 |
private static final String fileName = "WillingImport_Kreta_no_barcode_005_243.xlsx";
|
|
44 | 45 |
|
45 | 46 |
|
46 | 47 |
private void doImport(ICdmDataSource cdmDestination){ |
... | ... | |
53 | 54 |
config.setDbSchemaValidation(schemaVal); |
54 | 55 |
config.setSourceReference(getSourceReference()); |
55 | 56 |
config.setNomenclaturalCode(NomenclaturalCode.ICNAFP); |
57 |
config.setIsH2(cdmDestination.getDatabaseType() == DatabaseTypeEnum.H2); |
|
58 |
config.setCheckNamesOnly(doCheckNames); |
|
56 | 59 |
|
57 | 60 |
CdmDefaultImport<GreeceWillingImportConfigurator> myImport = new CdmDefaultImport<>(); |
58 | 61 |
ImportResult result = myImport.invoke(config); |
Also available in: Unified diff
ref #7669 latest changes to Greece Willing images import, incl. no barcode import