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

Last change on this file since 69 was 69, checked in by duh, 13 years ago
  • set keyword expansion
  • Property svn:keywords set to Rev Date Author
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: 69 $
12 * $Author: duh $
13 * $Date: 2009-12-16 16:14:45 +0000 (wo, 16 dec 2009) $
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.