Ignore:
Timestamp:
Nov 11, 2010, 12:18:20 PM (13 years ago)
Author:
work@…
Message:
  • cleaned up the Bootstrap
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Subject.groovy

    r999 r1118  
    1818
    1919        // A Subject always belongs to one Study
    20         static belongsTo = [parent : Study]
     20        static belongsTo = [parent: Study]
    2121
    22         /** The name of the subject, which should be unique within the study */
     22        /** The name of the subject, which should be unique within the study  */
    2323        String name
    2424
    25         /** The species of the subject. In the domainFields property, the ontologies from which this term may come are specified. */
     25        /** The species of the subject. In the domainFields property, the ontologies from which this term may come are specified.  */
    2626        Term species
    2727
    2828        static constraints = {
    2929                // Ensure that the subject name is unique within the study
    30                 name(unique:['parent'])
     30                name(unique: ['parent'])
    3131        }
    3232
    33         static mapping = {
    34                 name column:"subjectname"
     33        static mapping = {
     34                name column: "subjectname"
    3535        }
    36 
    3736
    3837        /**
     
    5857        ]
    5958
    60         /**
    61         * Return by default the name of the subject.
    62         *
    63         * @return name field
    64         */
    65         String toString() {
    66             return name
    67         }
     59        /**
     60        * Return by default the name of the subject.
     61         *
     62        * @return name field
     63        */
     64        String toString() {
     65                return name
     66        }
    6867}
Note: See TracChangeset for help on using the changeset viewer.