Last change
on this file since 1430 was
1430,
checked in by work@…, 12 years ago
|
|
-
Property svn:keywords set to
Rev Author Date
|
File size:
1.2 KB
|
Line | |
---|
1 | package 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: 1430 $ |
---|
10 | * $Author: work@osx.eu $ |
---|
11 | * $Date: 2011-01-21 20:05:36 +0000 (vr, 21 jan 2011) $ |
---|
12 | */ |
---|
13 | class 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.