Changeset 1034 for trunk/grails-app/domain
- Timestamp:
- Nov 1, 2010, 4:17:43 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/Sample.groovy
r960 r1034 17 17 18 18 // A Sample always belongs to one study. 19 static belongsTo = [parent : Study, parentSubject : Subject, parentEvent : SamplingEvent] 19 static belongsTo = [ 20 parent : Study, 21 parentSubject : Subject, 22 parentEvent : SamplingEvent, 23 parentEventGroup: EventGroup 24 ] 20 25 21 26 // A Sample optionally has a parent Subject from which it was taken, this Subject should be in the same parent study. … … 28 33 String name // should be unique with respect to the parent study (which can be inferred) 29 34 Term material // material of the sample (should normally be bound to the BRENDA ontology) 30 31 35 32 36 /** … … 54 58 // The parent subject is optional, e.g. in a biobank of samples the subject could be unknown or non-existing. 55 59 parentSubject(nullable:true) 60 56 61 // The same holds for parentEvent 57 62 parentEvent(nullable:true) 63 64 // and for parentEventGroup 65 parentEventGroup(nullable:true) 58 66 59 67 // The material domain field is optional
Note: See TracChangeset
for help on using the changeset viewer.