Ignore:
Timestamp:
Jun 8, 2010, 1:04:08 PM (11 years ago)
Author:
duh
Message:
  • fixed indentation shite!!!
  • samples dev commit
File:
1 edited

Legend:

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

    r496 r540  
    2020        boolean preferredIdentifier
    2121
    22     static hasMany = [
    23                 listEntries     : TemplateFieldListItem,        // to store the entries to choose from when the type is 'item from predefined list'
    24                 ontologies      : Ontology                                      // to store the ontologies to choose from when the type is 'ontology term'
     22        static hasMany = [
     23                listEntries: TemplateFieldListItem,     // to store the entries to choose from when the type is 'item from predefined list'
     24                ontologies: Ontology                                    // to store the ontologies to choose from when the type is 'ontology term'
    2525        ]
    26        
     26
    2727        static constraints = {
    2828                // TODO: verify that TemplateField names are unique within templates of each super entity
    2929                unit(nullable: true, blank: true)
    30                 comment(nullable:true, blank: true)
     30                comment(nullable: true, blank: true)
    3131                required(default: false)
    3232                preferredIdentifier(default: false)
     
    3434
    3535        static mapping = {
    36         // TODO: this doesn't seem to work in Postgres
     36                // TODO: this doesn't seem to work in Postgres
    3737                comment type: 'text'
    3838        }
     
    4747         */
    4848        def String escapedName() {
    49                 return name.toLowerCase().replaceAll("([^a-z0-9])","_")
     49                return name.toLowerCase().replaceAll("([^a-z0-9])", "_")
    5050        }
    5151}
Note: See TracChangeset for help on using the changeset viewer.