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

Last change on this file since 68 was 68, checked in by duh, 10 years ago
  • changes headers conform standard
File size: 992 bytes
Line 
1/**
2 * The ChipAnnotation Domain Class
3 *
4 * What is this?
5 *
6 * @author  Robert Kerkhoven
7 * @since   20091215
8 * @package Proteomics
9 *
10 * Revision information:
11 * $Rev$
12 * $Author$
13 * $Date$
14 */
15class ChipAnnotation {
16    static mapping = {
17         table 'chip_annotation'
18         // version is set to false, because this isn't available by default for legacy databases
19         version false
20         id generator:'identity', column:'id'
21         chipIdChip column:'chip_id'
22    }
23    Integer id
24    String probeset
25    String accession
26    String geneSymbol
27    String description
28    String databaseType
29    // Relation
30    Chip chipIdChip
31
32    static constraints = {
33        id(max: 2147483647)
34        probeset(size: 0..50)
35        accession(size: 0..50)
36        geneSymbol(size: 0..80)
37        description(size: 0..300)
38        databaseType(size: 0..45)
39        chipIdChip()
40    }
41    String toString() {
42        return "${id}" 
43    }
44}
Note: See TracBrowser for help on using the repository browser.