Ignore:
Timestamp:
Nov 25, 2008, 3:58:19 PM (15 years ago)
Author:
tuxta
Message:

Set up BootStrap? and tweaked Domain classes

Location:
trunk/src/grails-app/domain
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/grails-app/domain/Person.groovy

    r18 r19  
    1717        firstName()
    1818        lastName()
    19         employeeID()
     19        employeeID(blank:true, nullable:true)
    2020    }
    2121
    2222    //Overriding the default toString method
    23     String toString() {"${this.firstName}:"{this.lastName}}
     23    String toString() {"${this.firstName} ${this.lastName}"}
    2424}
  • trunk/src/grails-app/domain/PersonGroup.groovy

    r18 r19  
    22    TypeOfPersonGroup typeOfPersonGroup
    33    String name
    4     String description
    5     boolean isActive
     4    String description = ""
     5    boolean isActive = true
    66
    77    static hasMany = [persons : Person]
    88
    99    static belongsTo = TypeOfPersonGroup
     10
     11    String toString() {
     12        "${this.name}"
     13    }
    1014}
  • trunk/src/grails-app/domain/TaskGroup.groovy

    r18 r19  
    1111    }
    1212
    13     String toString() {"${name}"}
     13    String toString() {"${this.name}"}
    1414}
  • trunk/src/grails-app/domain/TypeOfEntry.groovy

    r18 r19  
    22    Entry entry
    33    String name
    4     String description
     4    String description = ""
    55    boolean isActive
    66
     
    1414    }
    1515
    16     static optionals = ["description"]
     16    String toString() {
     17        "${this.name}"
     18    }
    1719}
  • trunk/src/grails-app/domain/TypeOfModification.groovy

    r18 r19  
    1111        isActive()
    1212    }
     13
     14    String toString() {
     15        "${this.name}"
     16    }
    1317}
  • trunk/src/grails-app/domain/TypeOfPersonGroup.groovy

    r18 r19  
    11class TypeOfPersonGroup {
    22    String name
    3     String Description
    4     boolean isActive
     3    String description = ""
     4    boolean isActive = true
    55
    66    static hasMany = [personGroups : PersonGroup]
     7
     8    String toString() {
     9        "${this.name}"
     10    }
    711}
Note: See TracChangeset for help on using the changeset viewer.