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

Last change on this file since 1452 was 1452, checked in by work@…, 13 years ago
  • changed gdt imports
  • added default searchable config
  • did some debuggin on #227 but issue is still there... also if searchable is enabled the project becomes really slow... perhaps we need to get rid of searchable and implement search fnctionality in another way?
  • Property svn:keywords set to Rev Author Date
File size: 1.2 KB
Line 
1package dbnp.studycapturing
2import nl.grails.plugins.gdt.*
3
4/**
5 * The Person class represents a person who is related to one ore more studies, such as a PI, a lab analyst etc.
6 * Those people do not neccessarily have an account in GSCF, the Study/Persons/Affiliations administration
7 * is independent of GSCF usernames and accounts.
8 *
9 * Revision information:
10 * $Rev: 1452 $
11 * $Author: work@osx.eu $
12 * $Date: 2011-01-27 17:37:15 +0000 (do, 27 jan 2011) $
13 */
14class Person extends Identity {
15        String title
16        String gender
17        String lastName
18        String prefix
19        String firstName
20        String initials
21        String email
22        String fax
23        String phone
24        String mobile
25        String address
26
27        static hasMany = [affiliations: PersonAffiliation]
28
29        static constraints = {
30                title(nullable: true, blank: true)
31                gender(nullable: true, blank: true)
32                firstName(nullable: true, blank: true)
33                initials(nullable: true, blank: true)
34                prefix(nullable: true, blank: true)
35                lastName(nullable: true, blank: true)
36                email(nullable: true, blank: true)
37                fax(nullable: true, blank: true)
38                phone(nullable: true, blank: true)
39                address(nullable: true, blank: true)
40                mobile(nullable: true, blank: true)
41        }
42
43    static mapping = {
44        sort 'lastName': 'asc'
45                sort 'firstName': 'asc'
46    }
47
48
49}
Note: See TracBrowser for help on using the repository browser.