source: trunk/grails-app/domain/dbnp/transcriptomics/data/Chip.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: 773 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 Chip {
12    static mapping = {
13         table 'chip'
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    }
18    Integer id
19    String name
20    Date timeStamp
21    String databaseName
22    String organismName
23
24    static constraints = {
25        id(max: 2147483647)
26        name(size: 0..200)
27        timeStamp()
28        databaseName(size: 0..45)
29        organismName(size: 0..100)
30    }
31    String toString() {
32        return "${id}" 
33    }
34}
Note: See TracBrowser for help on using the repository browser.