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

Last change on this file since 178 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
Line 
1class Department {
2
3    String name
4    String description = ""
5    String costCode = ""
6    boolean isActive = true
7
8    static hasMany = [systemSections: SystemSection, persons: Person]
9
10//     static belongsTo = []
11
12    static constraints = {
13        name()
14        description()
15        costCode()
16        isActive()
17    }
18
19    String toString() {
20        "${this.name}"
21    }
22}
23
Note: See TracBrowser for help on using the repository browser.