Revision 1fac05b8
Added by Andreas Müller almost 5 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/redlist/RoteListeDbChecklistActivator.java | ||
---|---|---|
27 | 27 |
/** |
28 | 28 |
* @author a.mueller |
29 | 29 |
* @since 20.06.2008 |
30 |
* @version 1.0 |
|
31 | 30 |
*/ |
32 | 31 |
public class RoteListeDbChecklistActivator { |
33 | 32 |
@SuppressWarnings("unused") |
... | ... | |
68 | 67 |
config.setDbSchemaValidation(hbm2dll); |
69 | 68 |
config.setRecordsPerTransaction(recordsPerTransaction); |
70 | 69 |
|
71 |
CdmDefaultImport<RoteListeDbImportConfigurator> myImport = new CdmDefaultImport<RoteListeDbImportConfigurator>();
|
|
70 |
CdmDefaultImport<RoteListeDbImportConfigurator> myImport = new CdmDefaultImport<>(); |
|
72 | 71 |
|
73 | 72 |
System.out.println("Start import from ("+ source.toString() + ") ..."); |
74 | 73 |
config.setSourceReference(getSourceReference(sourceReference)); |
... | ... | |
84 | 83 |
|
85 | 84 |
private Reference getSourceReference(String string) { |
86 | 85 |
Reference result = ReferenceFactory.newGeneric(); |
87 |
result.setTitleCache(string); |
|
86 |
result.setTitleCache(string, true);
|
|
88 | 87 |
return result; |
89 | 88 |
} |
90 | 89 |
|
Also available in: Unified diff
cleanup