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

Last change on this file since 7 was 7, checked in by robert@…, 8 years ago
  • Created tests for the synchronization and trash
  • Improved synchronizationservice and trash
  • Put authorization checks in several pages
File size: 460 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                assaySamples cascade: "all-delete-orphan"
19        }
20}
Note: See TracBrowser for help on using the repository browser.