01: package com.tctest.domain;
02:
03: public class Customer {
04:
05: private int id;
06:
07: private String firstName;
08:
09: private String lastName;
10:
11: private String emailAddress;
12:
13: private Account account;
14:
15: public Customer() {
16: super ();
17: }
18:
19: public int getId() {
20: return id;
21: }
22:
23: public void setId(int id) {
24: this .id = id;
25: }
26:
27: public String getFirstName() {
28: return firstName;
29: }
30:
31: public void setFirstName(String firstName) {
32: this .firstName = firstName;
33: }
34:
35: public String getLastName() {
36: return lastName;
37: }
38:
39: public void setLastName(String lastName) {
40: this .lastName = lastName;
41: }
42:
43: public String getEmailAddress() {
44: return emailAddress;
45: }
46:
47: public void setEmailAddress(String emailAddress) {
48: this .emailAddress = emailAddress;
49: }
50:
51: public Account getAccount() {
52: return account;
53: }
54:
55: public void setAccount(Account account) {
56: this .account = account;
57: }
58:
59: public String toString() {
60: return "customer.lastName: " + lastName
61: + ", customer.firstName: " + firstName
62: + ", customer.email: " + emailAddress;
63: }
64: }
|