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