Ignore:
Timestamp:
Jun 10, 2010, 11:43:50 AM (10 years ago)
Author:
jahn
Message:

Refactored member 'code' of Study. Changed it from being template to being a proper member. This allows using as external ID in module communication.

Location:
trunk/grails-app/domain/dbnp/studycapturing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Assay.groovy

    r540 r554  
    1010    AssayModule module
    1111    long externalAssayID // the assay ID the assay has in the external module
    12 
     12       
    1313    static hasMany = [samples : Sample]
    1414
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r540 r554  
    1313        nimble.User owner
    1414        String title
     15        String code             // also enables referencing to studies from the Simple Assay Module
    1516        Date dateCreated
    1617        Date lastUpdated
    1718        Date startDate
    18     long externalStudyID   // enables referring to studies outside of GSCF, e.g., in the Simple Assay Module
     19   
    1920
    2021        /**
     
    2829                        name: 'title',
    2930                        type: TemplateFieldType.STRING),
     31                new TemplateField(
     32                        name: 'code',
     33                        type: TemplateFieldType.STRING,
     34                        preferredIdentifier:true,
     35                        comment: 'Fill out the code by which many people will recognize your study'),
    3036                new TemplateField(
    3137                        name: 'startDate',
     
    4955        static constraints = {
    5056                owner(nullable: true, blank: true)
    51                 externalStudyID(nullable:true, blank:true)
     57                code(nullable:false, blank:true,unique:true)
    5258        }
    5359
Note: See TracChangeset for help on using the changeset viewer.