source: trunk/grails-app/domain/dbnp/transcriptomics/data/ChipAnnotation.groovy @ 79

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

Added three domain classes for the storage of micro-array data.

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