source: trunk/grails-app/domain/nl/tno/metagenomics/Sample.groovy @ 2

Last change on this file since 2 was 2, checked in by robert@…, 8 years ago

Initial import of basic functionality

File size: 416 bytes
Line 
1package nl.tno.metagenomics
2
3/**
4* Minimal representation of a sample. The sampleToken is the link with a sample object in GSCF.
5*
6* @see GscfService.getSample
7*/
8class Sample {
9        String  sampleToken             // Unique within a study
10        String  name                   
11       
12        static belongsTo    = [ study: Study ]
13        static hasMany      = [ assaySamples: AssaySample ]
14        static mapping = {
15                columns {
16                        assayToken index:'sampletoken_idx'
17                }
18        }
19}
Note: See TracBrowser for help on using the repository browser.