KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tcspring > beans > orm > domain > CustomerAddress


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tcspring.beans.orm.domain;
5
6 public class CustomerAddress {
7
8   private int customerAddressId;
9   private int customer;
10   private String JavaDoc line1;
11   private String JavaDoc line2;
12   private String JavaDoc city;
13   private String JavaDoc postCode;
14
15   public String JavaDoc toString() {
16     StringBuffer JavaDoc result = new StringBuffer JavaDoc(100);
17     result.append("CustomerAddress { customerAddressId=");
18     result.append(customerAddressId);
19     result.append(", line1=");
20     result.append(line1);
21     result.append(", line2=");
22     result.append(line2);
23     result.append(", city=");
24     result.append(city);
25     result.append(", postCode=");
26     result.append(postCode);
27     result.append(" }");
28     return result.toString();
29   }
30
31   public String JavaDoc getCity() {
32     return city;
33   }
34
35   public void setCity(String JavaDoc city) {
36     this.city = city;
37   }
38
39   public int getCustomerAddressId() {
40     return customerAddressId;
41   }
42
43   public void setCustomerAddressId(int customerAddressId) {
44     this.customerAddressId = customerAddressId;
45   }
46
47   public String JavaDoc getLine1() {
48     return line1;
49   }
50
51   public void setLine1(String JavaDoc line1) {
52     this.line1 = line1;
53   }
54
55   public String JavaDoc getLine2() {
56     return line2;
57   }
58
59   public void setLine2(String JavaDoc line2) {
60     this.line2 = line2;
61   }
62
63   public String JavaDoc getPostCode() {
64     return postCode;
65   }
66
67   public void setPostCode(String JavaDoc postCode) {
68     this.postCode = postCode;
69   }
70
71   public int getCustomer() {
72     return customer;
73   }
74
75   public void setCustomer(int customer) {
76     this.customer = customer;
77   }
78 }
79
Popular Tags