\r
import org.apache.log4j.Logger;\r
\r
-import eu.etaxonomy.cdm.api.application.CdmApplicationController;\r
-import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration;\r
+import eu.etaxonomy.cdm.api.application.ICdmApplicationDefaultConfiguration;\r
import eu.etaxonomy.cdm.app.common.CdmDestinations;\r
+import eu.etaxonomy.cdm.app.berlinModelImport.TreeCreator;\r
import eu.etaxonomy.cdm.database.DbSchemaValidation;\r
import eu.etaxonomy.cdm.database.ICdmDataSource;\r
import eu.etaxonomy.cdm.io.berlinModel.in.BerlinModelImportConfigurator;\r
\r
/**\r
* TODO add the following to a wiki page:\r
- * HINT: If you are about to import into a mysql data base running under windows and if you wish to dump and restore the resulting data bas under another operation systen \r
+ * HINT: If you are about to import into a mysql data base running under windows and if you wish to dump and restore the resulting data base under another operation systen \r
* you must set the mysql system variable lower_case_table_names = 0 in order to create data base with table compatible names.\r
* \r
* \r
static final EDITOR editor = EDITOR.EDITOR_AS_EDITOR;\r
\r
//NomeclaturalCode\r
- static final NomenclaturalCode nomenclaturalCode = NomenclaturalCode.ICBN;\r
+ static final NomenclaturalCode nomenclaturalCode = NomenclaturalCode.ICNAFP;\r
\r
//ignore null\r
static final boolean ignoreNull = true;\r
\r
static boolean useClassification = true;\r
+ \r
+ static boolean includesEmCode = false; \r
\r
\r
// **************** ALL ********************* \r
bmImportConfigurator.setDbSchemaValidation(hbm2dll);\r
bmImportConfigurator.setRecordsPerTransaction(recordsPerTransaction);\r
\r
+ bmImportConfigurator.setIncludesEmCode(includesEmCode);\r
\r
// maximum number of name facts to import\r
bmImportConfigurator.setMaximumNumberOfNameFacts(maximumNumberOfNameFacts);\r
success &= bmImport.invoke(bmImportConfigurator);\r
\r
if (doFacts && (bmImportConfigurator.getCheck().equals(CHECK.CHECK_AND_IMPORT) || bmImportConfigurator.getCheck().equals(CHECK.IMPORT_WITHOUT_CHECK) ) ){\r
- ICdmApplicationConfiguration app = bmImport.getCdmAppController();\r
+ ICdmApplicationDefaultConfiguration app = bmImport.getCdmAppController();\r
\r
//make feature tree\r
FeatureTree tree = TreeCreator.flatTree(featureTreeUuid, bmImportConfigurator.getFeatureMap(), featureKeyList);\r