source: trunk/grails-app/domain/dbnp/studycapturing/Assay.groovy @ 690

Last change on this file since 690 was 690, checked in by keesvb, 11 years ago

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

  • Property svn:keywords set to Date Rev Author
File size: 608 bytes
Line 
1package dbnp.studycapturing
2
3/**
4 * This class describes an Assay, which describes the application of a certain (omics) measurement to multiple samples.
5 * The actual data of these measurements are described in submodules of dbNP. The type property describes in which module
6 * this data can be found.
7 */
8class Assay {
9        String name
10        AssayModule module
11        long externalAssayID // the assay ID the assay has in the external module
12
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        }
24}
Note: See TracBrowser for help on using the repository browser.