Show
Ignore:
Timestamp:
15-07-10 09:39:55 (4 years ago)
Author:
keesvb
Message:

relocated getExternalSampleId to name

Files:
1 modified

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