Changeset 307


Ignore:
Timestamp:
Mar 23, 2010, 2:34:57 PM (7 years ago)
Author:
tabma
Message:
  • dynamic finder used instead of getTerm-method to retrieve a term
File:
1 edited

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)
Note: See TracChangeset for help on using the changeset viewer.