1 package org.hibernate.test.typedonetoone; 3 4 import java.io.Serializable ; 5 6 9 public class Customer implements Serializable { 10 11 private String name; 12 private String 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 getCustomerId() { 23 return customerId; 24 } 25 public void setCustomerId(String customerId) { 26 this.customerId = customerId; 27 } 28 public String getName() { 29 return name; 30 } 31 public void setName(String 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 |