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

Last change on this file since 361 was 361, checked in by roberth, 11 years ago

Added controllers and views for Person, PersonAffiliation? and PersonRole? and added them to the menu. Also removed the link between Person and PersonRole?, in line with the datamodel

  • Property svn:keywords set to Date Author Rev
File size: 602 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 lastName
9    String firstName
10    String midInitials
11    String email
12    String fax
13    String phone
14    String address
15
16    static hasMany = [affiliations: PersonAffiliation]
17
18    static constraints = {
19        firstName(nullable:true,blank:true)
20        midInitials(nullable:true,blank:true)
21        email(nullable:true,blank:true)
22        fax(nullable:true,blank:true)
23        phone(nullable:true,blank:true)
24        address(nullable:true,blank:true)
25    }
26}
Note: See TracBrowser for help on using the repository browser.