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

Last change on this file since 1430 was 1430, checked in by work@…, 13 years ago
  • set keyword expansion
  • Property svn:keywords set to Rev Author Date
File size: 1.2 KB
RevLine 
[184]1package dbnp.studycapturing
2
3/**
[754]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.
[822]7 *
8 * Revision information:
9 * $Rev: 1430 $
10 * $Author: work@osx.eu $
11 * $Date: 2011-01-21 20:05:36 +0000 (vr, 21 jan 2011) $
[184]12 */
[1426]13class Person extends nl.grails.plugins.gdt.Identity {
[540]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
[184]25
[540]26        static hasMany = [affiliations: PersonAffiliation]
[184]27
[540]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        }
[1036]41
42    static mapping = {
[1154]43        sort 'lastName': 'asc'
44                sort 'firstName': 'asc'
[1036]45    }
46
47
[184]48}
Note: See TracBrowser for help on using the repository browser.