01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tcspring.beans.orm.domain;
05:
06: import java.util.Set;
07:
08: public class Customer {
09:
10: private int customerId;
11: private String firstName;
12: private String lastName;
13: private Set addresses;
14: private Set permissions;
15:
16: public String toString() {
17: StringBuffer result = new StringBuffer(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 getAddresses() {
33: return addresses;
34: }
35:
36: public void setAddresses(Set 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 getFirstName() {
49: return firstName;
50: }
51:
52: public void setFirstName(String firstName) {
53: this .firstName = firstName;
54: }
55:
56: public String getLastName() {
57: return lastName;
58: }
59:
60: public void setLastName(String lastName) {
61: this .lastName = lastName;
62: }
63:
64: public Set getPermissions() {
65: return permissions;
66: }
67:
68: public void setPermissions(Set permissions) {
69: this.permissions = permissions;
70: }
71: }
|