- Timestamp:
- Nov 11, 2010, 12:18:20 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.