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

Last change on this file since 389 was 382, checked in by roberth, 9 years ago

Updated the fields of person to contain title, gender, prefix and mobile phone. Also updated the views so that the pagination buttons appear beneath the 'add new' button.

  • Property svn:keywords set to Date Author Rev
File size: 873 bytes
Line 
1package dbnp.studycapturing
2
3/**
4 * Person class, describes persons that are somehow connected to the study
5 */
6class Person {
7
8    String title
9    String gender
10    String lastName
11    String prefix
12    String firstName
13    String initials
14    String email
15    String fax
16    String phone
17    String mobile
18    String address
19
20    static hasMany = [affiliations: PersonAffiliation]
21
22    static constraints = {
23        title(nullable:true,blank:true)
24        gender(nullable:true,blank:true)
25        firstName(nullable:true,blank:true)
26        initials(nullable:true,blank:true)
27        prefix(nullable:true,blank:true)
28        lastName(nullable:true,blank:true)
29        email(nullable:true,blank:true)
30        fax(nullable:true,blank:true)
31        phone(nullable:true,blank:true)
32        address(nullable:true,blank:true)
33        mobile(nullable:true,blank:true)
34    }
35}
Note: See TracBrowser for help on using the repository browser.