KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.util.Set JavaDoc;
7
8 public class Customer {
9
10   private int customerId;
11   private String JavaDoc firstName;
12   private String JavaDoc lastName;
13   private Set JavaDoc addresses;
14   private Set JavaDoc permissions;
15
16   public String JavaDoc toString() {
17     StringBuffer JavaDoc result = new StringBuffer JavaDoc(250);
18     result.append("Customer { customerId=");
19     result.append(customerId);
20     result.append(", firstName=");
21     result.append(firstName);
22     result.append(", lastName=");
23     result.append(lastName);
24     result.append(", addresses=");
25     result.append(addresses);
26     result.append(", permissions=");
27     result.append(permissions);
28     result.append(" }");
29     return result.toString();
30   }
31
32   public Set JavaDoc getAddresses() {
33     return addresses;
34   }
35
36   public void setAddresses(Set JavaDoc addresses) {
37     this.addresses = addresses;
38   }
39
40   public int getCustomerId() {
41     return customerId;
42   }
43
44   public void setCustomerId(int customerId) {
45     this.customerId = customerId;
46   }
47
48   public String JavaDoc getFirstName() {
49     return firstName;
50   }
51
52   public void setFirstName(String JavaDoc firstName) {
53     this.firstName = firstName;
54   }
55
56   public String JavaDoc getLastName() {
57     return lastName;
58   }
59
60   public void setLastName(String JavaDoc lastName) {
61     this.lastName = lastName;
62   }
63
64   public Set JavaDoc getPermissions() {
65     return permissions;
66   }
67
68   public void setPermissions(Set JavaDoc permissions) {
69     this.permissions = permissions;
70   }
71 }
72
Popular Tags