Changeset 652 for trunk/grails-app/domain
- Timestamp:
- Jul 15, 2010, 9:39:55 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/Sample.groovy
r651 r652 13 13 SamplingEvent parentEvent 14 14 15 String name // should be unique with respect to the parent study (which can be inferred) 16 Term material // a member that describes the quantity of the sample? --> should be in the templates 17 String externalSampleId // should be unique with respect to the parent study (which can be inferred) 15 String name // should be unique with respect to the parent study (which can be inferred) 16 Term material // material of the sample (should normally be bound to the BRENDA ontology) 17 18 def getExternalSampleId() { name } 19 20 // TODO: Write a validation method that checks if the externalSampleId (currently defined as name) 21 // is really unique within each parent study of this sample. 22 // Maybe this could also be a constraint, but we might run into trouble creating new Sample objects in e.g. the create wizard. 23 // To be checked. 18 24 19 25 /** … … 36 42 static constraints = { 37 43 parentSubject(nullable:true) 38 externalSampleId(nullable:true)39 44 } 40 45
Note: See TracChangeset
for help on using the changeset viewer.