- Timestamp:
- Nov 18, 2010, 2:16:29 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/Sample.groovy
r1161 r1169 16 16 //static searchable = { [only: ['name']] } 17 17 18 // A Sample always belongs to one study.19 18 static belongsTo = [ 19 // A Sample always belongs to one study. 20 20 parent : Study, 21 22 // A Sample optionally has a parent Subject from which it was taken, this Subject should be in the same parent study. 21 23 parentSubject : Subject, 24 25 // Also, it has a parent SamplingEvent describing the actual sampling, also within the same parent study. 22 26 parentEvent : SamplingEvent, 27 28 // And it has a parent EventGroup which tied it to its parent subject and parent event 23 29 parentEventGroup: EventGroup 30 31 // We can't have parentAssay since a Sample can belong to multiple Assays 24 32 ] 25 26 // A Sample optionally has a parent Subject from which it was taken, this Subject should be in the same parent study.27 //long parentSubject28 29 // Also, it has a parent SamplingEvent describing the actual sampling, also within the same parent study.30 // Strange enough, we need to define parentEvent as a long here, otherwise the SamplingEvent gets serialized into the database (?!!)31 //long parentEvent32 33 33 34 String name // should be unique with respect to the parent study (which can be inferred) … … 60 61 61 62 // The same holds for parentEvent 62 parentEvent(nullable: false)63 parentEvent(nullable:true) 63 64 64 65 // and for parentEventGroup 65 66 parentEventGroup(nullable:true) 66 67 67 68 // The material domain field is optional 68 69 material(nullable: true)
Note: See TracChangeset
for help on using the changeset viewer.