Changeset 307

Show
Ignore:
Timestamp:
23-03-10 14:34:57 (4 years ago)
Author:
tabma
Message:

- dynamic finder used instead of getTerm-method to retrieve a term

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/dbnp/importer/ImporterService.groovy

    r297 r307  
    3030import dbnp.data.Ontology 
    3131import dbnp.data.Term 
    32  
    3332 
    3433class ImporterService { 
     
    256255         
    257256        def study = new Study(title:"New study", template:template) 
    258         def subject = new Subject(name:"New subject", species:Term.getTerm("Homo sapiens"), template:template) 
     257        def subject = new Subject(name:"New subject", species:Term.findByName("Homo sapiens"), template:template) 
    259258        def event = new Event(eventdescription:"New event", template:template) 
    260259        def protocol = new Protocol(name:"New protocol", template:template)