source: trunk/grails-app/domain/Expression.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: 768 bytes
Line 
1/**
2 * The Expression entity.
3 *
4 * @author   
5 *
6 *
7 */
8class Expression {
9    static mapping = {
10         table 'expression'
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         chipAnnotationIdChipAnnotation column:'chip_annotation_id'
15    }
16    Integer id
17    Integer studySampleAssayId
18    String expressionValue
19    // Relation
20    ChipAnnotation chipAnnotationIdChipAnnotation
21
22    static constraints = {
23        id(max: 2147483647)
24        studySampleAssayId(max: 2147483647)
25        expressionValue()
26        chipAnnotationIdChipAnnotation()
27    }
28    String toString() {
29        return "${id}" 
30    }
31}
Note: See TracBrowser for help on using the repository browser.