source: branches/features/purchaseOrders/grails-app/domain/Section.groovy @ 954

Last change on this file since 954 was 920, checked in by gav, 13 years ago

Svn merge -r874:r919 trunk/ into branches/features/purchaseOrders.
This brings the purchaseOrder branch fully up to date.

File size: 662 bytes
Line 
1class Section {
2
3    Site site
4    Department department
5
6    String name
7    String description = ""
8    String comment = ""
9    boolean isActive = true
10
11    static hasMany = [assets: Asset,
12                                maintenanceActions: MaintenanceAction,
13                                sectionExtendedAttributes: SectionExtendedAttribute]
14
15    static belongsTo = [Site]
16
17    static constraints = {
18        name(maxSize:50, unique:true, blank:false)
19        description(maxSize:75)
20        comment(maxSize:500)
21        isActive()
22    }
23
24    static mapping = {
25        assets(batchSize:1000)
26    }
27
28    String toString() {
29        "${this.name}"
30    }
31}
32
Note: See TracBrowser for help on using the repository browser.