Changeset 454 for trunk/grails-app/conf


Ignore:
Timestamp:
May 21, 2010, 10:04:49 AM (12 years ago)
Author:
roberth
Message:

Improved study list to be able to handle one or more studies. Also improved performance issues with Subject and Sample classes. I have set the domainFields property to a static property, filled it in the class description and attached an ontology to it in the bootstrap (because it can't be done in the class description). It might not be the prettiest solution, it does improve the performance of the study detail page and study comparison with 90%.

File:
1 edited

Legend:

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

    r453 r454  
    1919                // define timezone
    2020                System.setProperty('user.timezone', 'CET')
     21
     22                // Ontologies must be connected to the templatefields in runtime
     23                // because the Ontology.findByNcboId is not available otherwise
     24                TemplateEntity.getField( Subject.domainFields, 'species' ).ontologies = [Ontology.findByNcboId(1132)]
     25                TemplateEntity.getField( Sample.domainFields, 'material' ).ontologies = [Ontology.findByNcboId(1005)]
    2126
    2227                // we could also check if we are in development by GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT
Note: See TracChangeset for help on using the changeset viewer.