Changeset 138 for trunk/grails-app/domain
- Timestamp:
- Jan 26, 2010, 4:46:01 PM (13 years ago)
- Location:
- trunk/grails-app/domain/dbnp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/data/Term.groovy
r106 r138 7 7 * The Term object should point to an existing term in an online ontology, therefore instances of this class can also 8 8 * be seen as a cache of elements of the external ontology. 9 * 10 * Revision information: 11 * $Rev$ 12 * $Author$ 13 * $Date$ 9 14 */ 10 class Term { 15 class Term implements Serializable { 16 String name 17 Ontology ontology 18 String accession 11 19 12 String name 13 Ontology ontology 14 String accession 20 static constraints = { 21 } 15 22 16 static constraints = { 17 } 18 19 def String toString() { 20 return name 21 } 22 23 23 def String toString() { 24 return name 25 } 24 26 } -
trunk/grails-app/domain/dbnp/studycapturing/Study.groovy
r136 r138 9 9 * $Date$ 10 10 */ 11 class Study {11 class Study implements Serializable { 12 12 nimble.User owner 13 13 String title … … 21 21 Template template 22 22 23 static hasMany = [ editors: 24 readers:nimble.User,25 subjects:Subject,26 groups:SubjectGroup,27 events:Event,28 samplingEvents:SamplingEvent23 static hasMany = [ editors: nimble.User, 24 readers: nimble.User, 25 subjects: Subject, 26 groups: SubjectGroup, 27 events: Event, 28 samplingEvents: SamplingEvent 29 29 ] 30 30 -
trunk/grails-app/domain/dbnp/studycapturing/Subject.groovy
r136 r138 1 1 package dbnp.studycapturing 2 3 2 import dbnp.data.Term 4 3 5 4 /** 6 5 * This domain class describes the subjects in a study. 6 * 7 * Revision information: 8 * $Rev$ 9 * $Author$ 10 * $Date$ 7 11 */ 8 class Subject { 9 12 class Subject implements Serializable { 10 13 String name 11 14 Term species … … 16 19 17 20 static hasMany = [ 18 templateStringFields: String,19 templateNumberFields 20 templateStringListFields 21 templateTermFields 21 templateStringFields: String, 22 templateNumberFields: float, 23 templateStringListFields: String, 24 templateTermFields: Term 22 25 ] 23 26 24 27 static constraints = { 25 28 }
Note: See TracChangeset
for help on using the changeset viewer.