KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > typedonetoone > Customer


1 //$Id: Customer.java,v 1.2 2005/02/12 07:27:31 steveebersole Exp $
2
package org.hibernate.test.typedonetoone;
3
4 import java.io.Serializable JavaDoc;
5
6 /**
7  * @author Gavin King
8  */

9 public class Customer implements Serializable JavaDoc {
10
11     private String JavaDoc name;
12     private String JavaDoc customerId;
13     private Address billingAddress;
14     private Address shippingAddress;
15
16     public Address getBillingAddress() {
17         return billingAddress;
18     }
19     public void setBillingAddress(Address billingAddress) {
20         this.billingAddress = billingAddress;
21     }
22     public String JavaDoc getCustomerId() {
23         return customerId;
24     }
25     public void setCustomerId(String JavaDoc customerId) {
26         this.customerId = customerId;
27     }
28     public String JavaDoc getName() {
29         return name;
30     }
31     public void setName(String JavaDoc name) {
32         this.name = name;
33     }
34     public Address getShippingAddress() {
35         return shippingAddress;
36     }
37     public void setShippingAddress(Address shippingAddress) {
38         this.shippingAddress = shippingAddress;
39     }
40 }
41
Popular Tags