Project

General

Profile

« Previous | Next » 

Revision 86e0a417

Added by Andreas Müller almost 11 years ago

update ReferenceFactory method

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/app/tcs/TcsRdfTestActivator.java
90 90
			
91 91
			
92 92
			IReferenceService refService = tcsImport.getCdmAppController().getReferenceService();
93
			ReferenceFactory refFactory = ReferenceFactory.newInstance();
94
			IBook book = refFactory.newBook();
93
			IBook book = ReferenceFactory.newBook();
95 94
			//book.setDatePublished(TimePeriod.NewInstance(1945));
96 95
			book.setDatePublished(TimePeriod.NewInstance(1945).setEndDay(12).setEndMonth(4));
97
			refService.saveOrUpdate((Reference)book);
96
			refService.saveOrUpdate((Reference<?>)book);
98 97
			logger.info("End");
99 98
			System.out.println("End import from TCS ("+ source.toString() + ")...");
100 99
		} catch (URISyntaxException e) {

Also available in: Unified diff