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

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