Changeset 625


Ignore:
Timestamp:
Jun 25, 2010, 4:01:49 PM (9 years ago)
Author:
keesvb
Message:

changed ontology getOrCreate because the actual db type of ncboId is int

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/data/Ontology.groovy

    r569 r625  
    4141        }
    4242
     43        static Ontology getBioPortalOntology(int ncboId) {
     44                getBioPortalOntology(ncboId as String)
     45        }
    4346        static Ontology getBioPortalOntology(String ncboId) {
    4447                // Get ontology from BioPortal via Ontocat
     
    6467         * @return Ontology
    6568         */
    66         static Ontology getOrCreateOntologyByNcboId( Integer ncboId ) {
    67                 return getOrCreateOntologyByNcboId( ncboId as String )
     69        static Ontology getOrCreateOntologyByNcboId( String ncboId ) {
     70                return getOrCreateOntologyByNcboId( ncboId as int )
    6871        }
    69         static Ontology getOrCreateOntologyByNcboId( String ncboId ) {
    70                 def ontology = findByNcboId( ncboId )
     72        static Ontology getOrCreateOntologyByNcboId( int ncboId ) {
     73                println "find ${ncboId} in ${list()*.ncboId}"
     74                def ontology = findByNcboId( ncboId as String )
    7175
    7276                // got an ontology?
Note: See TracChangeset for help on using the changeset viewer.