Changeset 756


Ignore:
Timestamp:
Aug 2, 2010, 12:29:50 PM (10 years ago)
Author:
keesvb
Message:

updated Term constraint: accession is prefixed by the ontology identifier, and should therefore be unique database-wide

File:
1 edited

Legend:

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

    r643 r756  
    2222
    2323        static constraints = {
    24                 accession(unique: 'ontology')   // Accession should be unique within an ontology
    25                 name(unique: 'ontology')        // Preferred name should be unique within an ontology
    26         name(size: 1..255)              // Name should be a non-empty string
     24                accession(unique: true)     // Accession should be unique db-wide
     25                name(unique: 'ontology')    // Preferred name should be unique within an ontology
     26        name(size: 1..255)          // Name should be a non-empty string
    2727        }
    2828
Note: See TracChangeset for help on using the changeset viewer.