Changeset 1013

Show
Ignore:
Timestamp:
28-10-10 20:05:27 (3 years ago)
Author:
business@…
Message:

changed Ontology ncboId to unique, extended range of fulltext query

Location:
trunk/grails-app/domain/dbnp
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/data/Ontology.groovy

    r959 r1013  
    1919        int ncboId              // BioPortal: ontologyId 
    2020        int ncboVersionedId     // BioPortal: id 
     21 
     22        static constraints = { 
     23                ncboId(unique: true)     // For now, we just want one version of each NCBO ontology in the database 
     24        }        
    2125 
    2226        /** 
  • trunk/grails-app/domain/dbnp/studycapturing/Event.groovy

    r959 r1013  
    1212 */ 
    1313class Event extends TemplateEntity { 
     14 
     15        static searchable = true 
    1416 
    1517        static belongsTo = [parent : Study]      
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r996 r1013  
    1212 */ 
    1313class Study extends TemplateEntity { 
    14         static searchable = { 
    15             [only: ['title', 'Description']] // the description field will be searched only if defined in a study template 
    16         } 
     14        static searchable = true 
    1715 
    1816        SecUser owner           // The owner of the study. A new study is automatically owned by its creator.