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

Last change on this file since 80 was 80, checked in by keesvb, 12 years ago

added Event and ProtocolInstance? classes, updated DataSource? to work with 1.2, added packages to dbnp.transcriptomics.data classes, added a number of scaffold controllers, added Selenium tests

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