Ignore:
Timestamp:
Jul 15, 2010, 9:39:55 AM (6 years ago)
Author:
keesvb
Message:

relocated getExternalSampleId to name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Sample.groovy

    r651 r652  
    1313        SamplingEvent parentEvent
    1414
    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.
    1824
    1925        /**
     
    3642        static constraints = {
    3743                parentSubject(nullable:true)
    38                 externalSampleId(nullable:true)
    3944        }
    4045
Note: See TracChangeset for help on using the changeset viewer.