source: trunk/grails-app/domain/ChipAnnotation.groovy @ 66

Last change on this file since 66 was 66, checked in by robertkerkhoven, 10 years ago

Added 3 domain classes (groovy) for storing chip annotation and expression values.
chip
chip_annotation
expression

File size: 849 bytes
Line 
1/**
2 * The ChipAnnotation entity.
3 *
4 * @author   
5 *
6 *
7 */
8class ChipAnnotation {
9    static mapping = {
10         table 'chip_annotation'
11         // version is set to false, because this isn't available by default for legacy databases
12         version false
13         id generator:'identity', column:'id'
14         chipIdChip column:'chip_id'
15    }
16    Integer id
17    String probeset
18    String accession
19    String geneSymbol
20    String description
21    String databaseType
22    // Relation
23    Chip chipIdChip
24
25    static constraints = {
26        id(max: 2147483647)
27        probeset(size: 0..50)
28        accession(size: 0..50)
29        geneSymbol(size: 0..80)
30        description(size: 0..300)
31        databaseType(size: 0..45)
32        chipIdChip()
33    }
34    String toString() {
35        return "${id}" 
36    }
37}
Note: See TracBrowser for help on using the repository browser.