source: trunk/grails-app/domain/Contact.groovy @ 912

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

Domain change: as per ticket #97 - Drop the entire Manufacturer domain concept.

File size: 417 bytes
Line 
1class Contact {
2
3    ContactType contactType
4
5    Supplier supplier
6    Person person
7    Site site
8
9    String value
10
11//     hasMany = []
12
13    static belongsTo = [Supplier, Person, Site]
14
15    static constraints = {
16        value(maxSize:50)
17
18        supplier(nullable:true)
19        person(nullable:true)
20        site(nullable:true)
21    }
22
23    String toString() {
24        "${this.contactType}: ${this.value}"
25    }
26
27}
Note: See TracBrowser for help on using the repository browser.