Changeset 464 for trunk/grails-app


Ignore:
Timestamp:
May 25, 2010, 4:52:24 PM (13 years ago)
Author:
keesvb
Message:

workaround for Postgres, TEXT field are not stored properly

Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrap.groovy

    r461 r464  
    393393                                .with { if (!validate()) { errors.each { println it} } else save()}
    394394
    395                                 mouseStudy.setFieldValue('Description', "C57Bl/6 mice were fed a high fat (45 en%) or low fat (10 en%) diet after a four week run-in on low fat diet. After 1 week 10 mice that received a low fat diet were given an IP leptin challenge and 10 mice of the low-fat group received placebo injections. The same procedure was performed with mice that were fed the high-fat diet. After 4 weeks the procedure was repeated. In total 80 mice were culled." )
     395                                mouseStudy.setFieldValue('Description', "C57Bl/6 mice were fed a high fat (45 en%) or low fat (10 en%) diet after a four week run-in on low fat diet.");// After 1 week 10 mice that received a low fat diet were given an IP leptin challenge and 10 mice of the low-fat group received placebo injections. The same procedure was performed with mice that were fed the high-fat diet. After 4 weeks the procedure was repeated. In total 80 mice were culled." )
    396396                                mouseStudy.save()
    397397
  • trunk/grails-app/domain/dbnp/studycapturing/TemplateField.groovy

    r408 r464  
    2020        boolean preferredIdentifier
    2121
    22     static hasMany = [
     22    static hasMany = [                                                                      ve
    2323                listEntries     : TemplateFieldListItem,        // to store the entries to choose from when the type is 'item from predefined list'
    2424                ontologies      : Ontology                                      // to store the ontologies to choose from when the type is 'ontology term'
     
    3434
    3535        static mapping = {
     36        // TODO: this doesn't seem to work in Postgres
    3637                comment type: 'text'
    3738        }
Note: See TracChangeset for help on using the changeset viewer.