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

Last change on this file since 68 was 68, checked in by duh, 10 years ago
  • changes headers conform standard
File size: 820 bytes
Line 
1/**
2 * The Chip 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 Chip {
16    static mapping = {
17         table 'chip'
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    }
22    Integer id
23    String name
24    Date timeStamp
25    String version
26    String databaseName
27
28    static constraints = {
29        id(max: 2147483647)
30        name(size: 1..200, blank: false)
31        timeStamp()
32        version(size: 1..45, blank: false)
33        databaseName(size: 1..45, blank: false)
34    }
35    String toString() {
36        return "${id}" 
37    }
38}
Note: See TracBrowser for help on using the repository browser.