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

Last change on this file since 162 was 162, checked in by gav, 14 years ago

Add Department domain class, controller, views and demo data.
Add costCode and department attributes to SystemSection? and regen non-detailed controller and views, adjust detailed views to suite.

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