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

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

Location:
trunk/grails-app/domain/dbnp/studycapturing
Files:
2 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}
  • trunk/grails-app/domain/dbnp/studycapturing/AssayModule.groovy

    r540 r690  
    55 */
    66class AssayModule {
    7     String name
    8     AssayType type
    9     String platform
    10     String url
     7        String name
     8        AssayType type
     9        String platform
     10        String url
    1111
    12     static constraints = {
    13     }
     12        static constraints = {
     13        }
     14
     15        def String toString() {
     16                return name;
     17        }
     18
     19
    1420}
Note: See TracChangeset for help on using the changeset viewer.