Ignore:
Timestamp:
Feb 28, 2011, 10:46:51 AM (13 years ago)
Author:
robert@…
Message:

Improvement of the synchronization error handling and changes for deploying the module to dbnptest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/nl/tno/metagenomics/integration/SynchronizationService.groovy

    r14 r16  
    634634                                        // Update the sample object if necessary
    635635                                        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 + ")" : "" )
    638638                                        sampleFound.save();
    639639                                } else {
     
    648648                                                // Update the sample object if necessary
    649649                                                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 + ")" : "" )
    652652                                                sampleFound.save();
    653653                                        } else {
     
    656656                                                // If it doesn't exist, create a new object
    657657                                                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 + ")" : "" )
    660660                                                assay.study.addToSamples( sampleFound );
    661661                                                sampleFound.save();
Note: See TracChangeset for help on using the changeset viewer.