KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > domain > Customer


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