Ignore:
Timestamp:
May 10, 2010, 4:29:04 PM (9 years ago)
Author:
keesvb
Message:

added Ontology/Term? and Subject integration tests

File:
1 edited

Legend:

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

    r359 r398  
    1818
    1919        String name             // BioPortal: label (preferred name)
    20         Ontology ontology       // Parent ontology
     20        Ontology ontology       // Parent ontology. To enable the unique constraints, we describe the Ontology-Term relation here
    2121        String accession        // BioPortal: conceptId
    2222
    2323        static constraints = {
    24                 accession(unique: 'ontology')
     24                accession(unique: 'ontology')   // Accession should be unique within an ontology
     25                name(unique: 'ontology')        // Preferred name should be unique within an ontology
    2526        }
    2627
Note: See TracChangeset for help on using the changeset viewer.