source: trunk/grails-app/domain/Department.groovy @ 263

Last change on this file since 263 was 164, checked in by gav, 15 years ago

Add Department-Person relationship, update demo data and views to suite.
Add department and personGroups to Person views.

File size: 384 bytes
RevLine 
[162]1class Department {
2
3    String name
4    String description = ""
5    String costCode = ""
6    boolean isActive = true
7
[164]8    static hasMany = [systemSections: SystemSection, persons: Person]
[162]9
10//     static belongsTo = []
11
[164]12    static constraints = {
13        name()
14        description()
15        costCode()
16        isActive()
17    }
[162]18
19    String toString() {
20        "${this.name}"
21    }
22}
23
Note: See TracBrowser for help on using the repository browser.