- Timestamp:
- Jan 27, 2010, 9:58:59 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/Subject.groovy
r138 r139 1 1 package dbnp.studycapturing 2 2 3 import dbnp.data.Term 3 4 4 5 /** 5 6 * This domain class describes the subjects in a study. 6 *7 * Revision information:8 * $Rev$9 * $Author$10 * $Date$11 7 */ 12 class Subject implements Serializable { 8 class Subject { 9 static searchable = true 13 10 String name 14 11 Term species 15 12 Map templateStringFields 16 Map template NumberFields17 Map template StringListFields13 Map templateIntegerFields 14 Map templateFloatFields 18 15 Map templateTermFields 19 16 20 17 static hasMany = [ 21 templateStringFields: String,22 template NumberFields: float,23 template StringListFields: String,24 templateTermFields : Term18 templateStringFields : String, // stores both STRING and STRINGLIST items (latter should be checked against the list) 19 templateIntegerFields : int, 20 templateFloatFields : float, 21 templateTermFields : Term 25 22 ] 26 23 27 24 static constraints = { 28 25 }
Note: See TracChangeset
for help on using the changeset viewer.