01: package org.osbl.identity.model;
02:
03: import org.conform.Property;
04: import org.osbl.persistence.model.*;
05:
06: import java.util.List;
07:
08: public class Person extends Concrete<Identity> {
09: @Property(mandatory="true")
10: String firstName;
11: @Property(mandatory="true")
12: String lastName;
13: List<Address> addresses;
14: Gender gender;
15:
16: public Person() {
17: }
18:
19: public Person(Identity general) {
20: super (general);
21: }
22:
23: public String getFirstName() {
24: return firstName;
25: }
26:
27: public void setFirstName(String firstName) {
28: this .firstName = firstName;
29: }
30:
31: public String getLastName() {
32: return lastName;
33: }
34:
35: public void setLastName(String lastName) {
36: this .lastName = lastName;
37: }
38:
39: public List<Address> getAddresses() {
40: return addresses;
41: }
42:
43: public void setAddresses(List<Address> addresses) {
44: this .addresses = addresses;
45: }
46:
47: public Gender getGender() {
48: return gender;
49: }
50:
51: public void setGender(Gender gender) {
52: this.gender = gender;
53: }
54: }
|