Ignore:
Timestamp:
Nov 1, 2010, 4:17:43 PM (6 years ago)
Author:
j.a.m.wesbeek@…
Message:
File:
1 edited

Legend:

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

    r960 r1034  
    1717
    1818        // 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        ]
    2025
    2126        // A Sample optionally has a parent Subject from which it was taken, this Subject should be in the same parent study.
     
    2833        String name             // should be unique with respect to the parent study (which can be inferred)
    2934        Term material           // material of the sample (should normally be bound to the BRENDA ontology)
    30 
    3135
    3236        /**
     
    5458                // The parent subject is optional, e.g. in a biobank of samples the subject could be unknown or non-existing.
    5559                parentSubject(nullable:true)
     60
    5661                // The same holds for parentEvent
    5762                parentEvent(nullable:true)
     63
     64                // and for parentEventGroup
     65                parentEventGroup(nullable:true)
    5866               
    5967                // The material domain field is optional
Note: See TracChangeset for help on using the changeset viewer.