Ignore:
Timestamp:
Nov 11, 2010, 12:18:20 PM (10 years ago)
Author:
work@…
Message:
  • cleaned up the Bootstrap
Location:
trunk/grails-app/domain/dbnp
Files:
2 edited

Legend:

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

    r1013 r1118  
    55 * in the (global) Term store.
    66 * This information is mapped from the BioPortal NCBO REST service, e.g.: http://rest.bioontology.org/bioportal/ontologies/38802
    7  * @see http://www.bioontology.org/wiki/index.php/NCBO_REST_services
     7 * see http://www.bioontology.org/wiki/index.php/NCBO_REST_services
    88 *
    99 * Revision information:
     
    7575        }
    7676        static Ontology getOrCreateOntologyByNcboId( int ncboId ) {
    77                 println "find ${ncboId} in ${list()*.ncboId}"
    7877                def ontology = findByNcboId( ncboId as String )
    7978
     
    140139                        } else {
    141140                                // it does not validate
    142                                 println ".encountered errors instantiating Ontology by versionedId [" + ncboVersionedId + "] :"
    143                                 ontology.errors.each() {
    144                                         println "  -" + it
    145                                 }
    146141                                throw new Exception("instantiating Ontology by (versioned) id [" + ncboVersionedId + "] failed")
    147142                        }
  • trunk/grails-app/domain/dbnp/studycapturing/Subject.groovy

    r999 r1118  
    1818
    1919        // A Subject always belongs to one Study
    20         static belongsTo = [parent : Study]
     20        static belongsTo = [parent: Study]
    2121
    22         /** The name of the subject, which should be unique within the study */
     22        /** The name of the subject, which should be unique within the study  */
    2323        String name
    2424
    25         /** The species of the subject. In the domainFields property, the ontologies from which this term may come are specified. */
     25        /** The species of the subject. In the domainFields property, the ontologies from which this term may come are specified.  */
    2626        Term species
    2727
    2828        static constraints = {
    2929                // Ensure that the subject name is unique within the study
    30                 name(unique:['parent'])
     30                name(unique: ['parent'])
    3131        }
    3232
    33         static mapping = {
    34                 name column:"subjectname"
     33        static mapping = {
     34                name column: "subjectname"
    3535        }
    36 
    3736
    3837        /**
     
    5857        ]
    5958
    60         /**
    61         * Return by default the name of the subject.
    62         *
    63         * @return name field
    64         */
    65         String toString() {
    66             return name
    67         }
     59        /**
     60        * Return by default the name of the subject.
     61         *
     62        * @return name field
     63        */
     64        String toString() {
     65                return name
     66        }
    6867}
Note: See TracChangeset for help on using the changeset viewer.