Project

General

Profile

« Previous | Next » 

Revision fb197bd2

Added by Andreas Müller almost 8 years ago

add RefDetail filter

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/app/berlinModelImport/EuroMedActivator.java
56 56
//	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_euroMed();
57 57
	
58 58
//	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_pesi_euroMed();
59
//	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_local_euromed3();
59
//	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_local_euromed();
60 60
	static final ICdmDataSource cdmDestination = CdmDestinations.localH2();
61 61
	
62 62
	static final boolean includePesiExport = false;
......
74 74
	static final int partitionSize = 2500;
75 75
	
76 76
	//check - import
77
	static final CHECK check = CHECK.CHECK_ONLY;
77
	static final CHECK check = CHECK.IMPORT_WITHOUT_CHECK;
78 78

  
79 79
	//editor - import
80 80
	static final EDITOR editor = EDITOR.EDITOR_AS_EDITOR;
......
106 106
					" ORDER BY r.RelPTaxonId ";  // AND r.RelQualifierFk =1 
107 107
	static String nameIdTable = " v_cdm_exp_namesAll ";
108 108
	static String referenceIdTable = " v_cdm_exp_refAll ";
109
	static String refDetailFilter =  " RefDetailID IN (SELECT RefDetailID FROM v_cdm_exp_RefDetail) ";
109 110
	static String factFilter = " factId IN ( SELECT factId FROM v_cdm_exp_factsAll WHERE FactCategoryFk NOT IN (12, 14, 249, 251))";
110 111
	static String occurrenceFilter = " occurrenceId IN ( SELECT occurrenceId FROM v_cdm_exp_occurrenceAll )";
111 112
	static String occurrenceSourceFilter = " occurrenceFk IN ( SELECT occurrenceId FROM v_cdm_exp_occurrenceAll )"; 
......
118 119
	
119 120
// **************** ALL *********************	
120 121

  
121
	boolean invers = !(hbm2dll == DbSchemaValidation.CREATE);
122
	boolean invers =  !(hbm2dll == DbSchemaValidation.CREATE);
122 123
	
123 124
	static final boolean doUser = true;
124 125
//	//authors
......
193 194
		config.setAuthorTeamFilter(authorTeamFilter);
194 195
		config.setAuthorFilter(authorFilter);
195 196
		config.setFactFilter(factFilter);
197
		config.setRefDetailFilter(refDetailFilter);
196 198
		config.setCommonNameFilter(commonNameFilter);
197 199
		config.setOccurrenceFilter(occurrenceFilter);
198 200
		config.setOccurrenceSourceFilter(occurrenceSourceFilter);

Also available in: Unified diff