class Contact {

    ContactType contactType

    Supplier supplier
    Person person
    Site site

    String value

//     hasMany = []

    static belongsTo = [Supplier, Person, Site]

    static constraints = {
        value(maxSize:50)

        supplier(nullable:true)
        person(nullable:true)
        site(nullable:true)
    }

    String toString() {
        "${this.contactType}: ${this.value}"
    }

}