Changeset 458 for trunk/grails-app/conf
- Timestamp:
- May 25, 2010, 11:18:21 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrap.groovy
r455 r458 19 19 // define timezone 20 20 System.setProperty('user.timezone', 'CET') 21 22 // Ontologies must be connected to the templatefields in runtime23 // because the Ontology.findByNcboId is not available otherwise24 //TemplateEntity.getField( Subject.domainFields, 'species' ).ontologies = [Ontology.findByNcboId(1132)]25 TemplateEntity.getField( Sample.domainFields, 'material' ).ontologies = [Ontology.findByNcboId(1005)]26 21 27 22 // we could also check if we are in development by GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT … … 740 735 } 741 736 } 737 738 // Ontologies must be connected to the templatefields in runtime 739 // because the Ontology.findByNcboId is not available otherwise 740 TemplateEntity.getField( Subject.domainFields, 'species' ).ontologies = [Ontology.findByNcboId(1132)] 741 TemplateEntity.getField( Sample.domainFields, 'material' ).ontologies = [Ontology.findByNcboId(1005)] 742 742 743 } 743 744
Note: See TracChangeset
for help on using the changeset viewer.