Changeset 16 for trunk/grails-app/services/nl/tno/metagenomics/integration/SynchronizationService.groovy
- Timestamp:
- Feb 28, 2011, 10:46:51 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/nl/tno/metagenomics/integration/SynchronizationService.groovy
r14 r16 634 634 // Update the sample object if necessary 635 635 sampleFound.name = gscfSample.name 636 sampleFound.subject = gscfSample.subject 637 sampleFound.event = gscfSample.event + ( gscfSample.startTime ? " (" + gscfSample.startTime + ")" : "" )636 sampleFound.subject = gscfSample.subject.toString() 637 sampleFound.event = gscfSample.event.toString() + ( gscfSample.startTime ? " (" + gscfSample.startTime + ")" : "" ) 638 638 sampleFound.save(); 639 639 } else { … … 648 648 // Update the sample object if necessary 649 649 sampleFound.name = gscfSample.name 650 sampleFound.subject = gscfSample.subject 651 sampleFound.event = gscfSample.event + ( gscfSample.startTime ? " (" + gscfSample.startTime + ")" : "" )650 sampleFound.subject = gscfSample.subject.toString() 651 sampleFound.event = gscfSample.event.toString() + ( gscfSample.startTime ? " (" + gscfSample.startTime + ")" : "" ) 652 652 sampleFound.save(); 653 653 } else { … … 656 656 // If it doesn't exist, create a new object 657 657 sampleFound = new Sample( sampleToken: gscfSample.sampleToken, name: gscfSample.name, study: assay.study ); 658 sampleFound.subject = gscfSample.subject 659 sampleFound.event = gscfSample.event + ( gscfSample.startTime ? " (" + gscfSample.startTime + ")" : "" )658 sampleFound.subject = gscfSample.subject.toString() 659 sampleFound.event = gscfSample.event.toString() + ( gscfSample.startTime ? " (" + gscfSample.startTime + ")" : "" ) 660 660 assay.study.addToSamples( sampleFound ); 661 661 sampleFound.save();
Note: See TracChangeset
for help on using the changeset viewer.