source: trunk/grails-app/domain/dbnp/studycapturing/Person.groovy @ 784

Last change on this file since 784 was 784, checked in by duh, 10 years ago
  • set keyword expansion
  • Property svn:keywords set to Author Rev Date
File size: 1009 bytes
Line 
1package dbnp.studycapturing
2
3/**
4 * The Person class represents a person who is related to one ore more studies, such as a PI, a lab analyst etc.
5 * Those people do not neccessarily have an account in GSCF, the Study/Persons/Affiliations administration
6 * is independent of GSCF usernames and accounts.
7 */
8class Person extends Identity {
9        String title
10        String gender
11        String lastName
12        String prefix
13        String firstName
14        String initials
15        String email
16        String fax
17        String phone
18        String mobile
19        String address
20
21        static hasMany = [affiliations: PersonAffiliation]
22
23        static constraints = {
24                title(nullable: true, blank: true)
25                gender(nullable: true, blank: true)
26                firstName(nullable: true, blank: true)
27                initials(nullable: true, blank: true)
28                prefix(nullable: true, blank: true)
29                lastName(nullable: true, blank: true)
30                email(nullable: true, blank: true)
31                fax(nullable: true, blank: true)
32                phone(nullable: true, blank: true)
33                address(nullable: true, blank: true)
34                mobile(nullable: true, blank: true)
35        }
36}
Note: See TracBrowser for help on using the repository browser.