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

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

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

File size: 677 bytes
Line 
1/**
2 * The Chip entity.
3 *
4 * @author   
5 *
6 *
7 */
8class Chip {
9    static mapping = {
10         table 'chip'
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    }
15    Integer id
16    String name
17    Date timeStamp
18    String version
19    String databaseName
20
21    static constraints = {
22        id(max: 2147483647)
23        name(size: 1..200, blank: false)
24        timeStamp()
25        version(size: 1..45, blank: false)
26        databaseName(size: 1..45, blank: false)
27    }
28    String toString() {
29        return "${id}" 
30    }
31}
Note: See TracBrowser for help on using the repository browser.