Changeset 1118 for trunk/grails-app/domain
- Timestamp:
- Nov 11, 2010, 12:18:20 PM (10 years ago)
- Location:
- trunk/grails-app/domain/dbnp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/data/Ontology.groovy
r1013 r1118 5 5 * in the (global) Term store. 6 6 * 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_services7 * see http://www.bioontology.org/wiki/index.php/NCBO_REST_services 8 8 * 9 9 * Revision information: … … 75 75 } 76 76 static Ontology getOrCreateOntologyByNcboId( int ncboId ) { 77 println "find ${ncboId} in ${list()*.ncboId}"78 77 def ontology = findByNcboId( ncboId as String ) 79 78 … … 140 139 } else { 141 140 // it does not validate 142 println ".encountered errors instantiating Ontology by versionedId [" + ncboVersionedId + "] :"143 ontology.errors.each() {144 println " -" + it145 }146 141 throw new Exception("instantiating Ontology by (versioned) id [" + ncboVersionedId + "] failed") 147 142 } -
trunk/grails-app/domain/dbnp/studycapturing/Subject.groovy
r999 r1118 18 18 19 19 // A Subject always belongs to one Study 20 static belongsTo = [parent 20 static belongsTo = [parent: Study] 21 21 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 */ 23 23 String name 24 24 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. */ 26 26 Term species 27 27 28 28 static constraints = { 29 29 // Ensure that the subject name is unique within the study 30 name(unique: ['parent'])30 name(unique: ['parent']) 31 31 } 32 32 33 34 name column:"subjectname"33 static mapping = { 34 name column: "subjectname" 35 35 } 36 37 36 38 37 /** … … 58 57 ] 59 58 60 61 62 * 63 64 65 66 67 59 /** 60 * Return by default the name of the subject. 61 * 62 * @return name field 63 */ 64 String toString() { 65 return name 66 } 68 67 }
Note: See TracChangeset
for help on using the changeset viewer.