Project

General

Profile

« Previous | Next » 

Revision d5ad6109

Added by Andreas Müller over 6 years ago

minor E+M import changes

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/app/berlinModelImport/EuroMedActivator.java
77 77
	private static final Logger logger = Logger.getLogger(EuroMedActivator.class);
78 78

  
79 79
	//database validation status (create, update, validate ...)
80
	static DbSchemaValidation hbm2dll = DbSchemaValidation.CREATE;
80
	static DbSchemaValidation hbm2dll = DbSchemaValidation.VALIDATE;
81 81
//    static final Source berlinModelSource = BerlinModelSources.euroMed_Pub2();
82 82
	static final Source berlinModelSource = BerlinModelSources.euroMed_BGBM42();
83 83
//	static final Source berlinModelSource = BerlinModelSources.euroMed_PESI3();
......
86 86
//	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_euroMed();
87 87
//	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_pesi_euromed();
88 88

  
89
//	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_local_euromed3();
90
	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_local_mysql_test();
89
	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_local_euromed();
90
//	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_local_mysql_test();
91 91

  
92 92

  
93 93
	static final boolean includePesiExport = false;
......
95 95
	static final int sourceSecId = 7000000; //500000
96 96
	static final UUID classificationUuid = UUID.fromString("314a68f9-8449-495a-91c2-92fde8bcf344");
97 97
	static final boolean useSingleClassification = true;
98
	static final String classificationName = "Euro+Med 2014";
98
	static final String classificationName = "Euro+Med 2017";
99 99
	static final UUID featureTreeUuid = UUID.fromString("6a5e1c2b-ec0d-46c8-9c7d-a2059267ffb7");
100 100
	static final Object[] featureKeyList = new Integer[]{1, 31, 4, 98, 41};
101 101

  
......
447 447

  
448 448
                   resultMap = geoService.mapShapeFileToNamedAreas(
449 449
                               reader, idSearchFields , wmsLayerName , areaVocabularyUuid, areaUuidSet);
450
                   Map<String, String> flatResultMap = new HashMap<String, String>(resultMap.size());
450
                   Map<String, String> flatResultMap = new HashMap<>(resultMap.size());
451 451
                   for(NamedArea area : resultMap.keySet()){
452 452
                       flatResultMap.put(area.getTitleCache() + " [" + area.getUuid() + "]", resultMap.get(area));
453 453
                   }
......
605 605
//			PesiExportActivatorEM exportActivator = new PesiExportActivatorEM();
606 606
//			exportActivator.doExport(cdmRepository);
607 607
		}
608
		System.exit(0);
608 609

  
609 610
	}
610 611

  

Also available in: Unified diff