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

Last change on this file since 1154 was 1154, checked in by robert@…, 10 years ago

Fixed exception when viewing the list of persons. See ticket #196.

  • Property svn:keywords set to Author Date Rev
File size: 1.1 KB
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 *
8 * Revision information:
9 * $Rev: 1154 $
10 * $Author: robert@isdat.nl $
11 * $Date: 2010-11-17 10:52:10 +0000 (wo, 17 nov 2010) $
12 */
13class Person extends Identity {
14        String title
15        String gender
16        String lastName
17        String prefix
18        String firstName
19        String initials
20        String email
21        String fax
22        String phone
23        String mobile
24        String address
25
26        static hasMany = [affiliations: PersonAffiliation]
27
28        static constraints = {
29                title(nullable: true, blank: true)
30                gender(nullable: true, blank: true)
31                firstName(nullable: true, blank: true)
32                initials(nullable: true, blank: true)
33                prefix(nullable: true, blank: true)
34                lastName(nullable: true, blank: true)
35                email(nullable: true, blank: true)
36                fax(nullable: true, blank: true)
37                phone(nullable: true, blank: true)
38                address(nullable: true, blank: true)
39                mobile(nullable: true, blank: true)
40        }
41
42    static mapping = {
43        sort 'lastName': 'asc'
44                sort 'firstName': 'asc'
45    }
46
47
48}
Note: See TracBrowser for help on using the repository browser.