Ignore:
Timestamp:
Jul 21, 2010, 5:37:13 PM (11 years ago)
Author:
keesvb
Message:

workaround for adding assays (scaffolded controllers), in order to be able to couple the SAM module

File:
1 edited

Legend:

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

    r554 r690  
    77 */
    88class Assay {
    9     String name
    10     AssayModule module
    11     long externalAssayID // the assay ID the assay has in the external module
    12        
    13     static hasMany = [samples : Sample]
     9        String name
     10        AssayModule module
     11        long externalAssayID // the assay ID the assay has in the external module
    1412
    15     static constraints = {
    16         externalAssayID( nullable:true )
    17     }
     13        static belongsTo = [parent: Study]
     14
     15        static hasMany = [samples: Sample]
     16
     17        static constraints = {
     18                externalAssayID(unique: true)
     19        }
     20
     21        def String toString() {
     22                return name;
     23        }
    1824}
Note: See TracChangeset for help on using the changeset viewer.