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

Last change on this file since 1426 was 1426, checked in by work@…, 10 years ago
  • Resolved part of improvement #225
  • refactored the template model out of GSCF into the GDT (Grails Domain Templates) plugin version 0.0.1
  • still work needs to be done (move template editor into gdt, etcetera)
  • fix template owner
  • some methods are missing from Template, but most of it works
  • Property svn:keywords set to Author Date Rev
File size: 1.2 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: 1426 $
10 * $Author: work@osx.eu $
11 * $Date: 2011-01-21 18:37:02 +0000 (vr, 21 jan 2011) $
12 */
13class Person extends nl.grails.plugins.gdt.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.