1 package org.hibernate.test.typedonetoone; 3 4 import java.io.Serializable ; 5 6 9 public class Address implements Serializable { 10 11 private AddressId addressId; 12 private String street; 13 private String city; 14 private String state; 15 private String zip; 16 private Customer customer; 17 18 public Customer getCustomer() { 19 return customer; 20 } 21 public void setCustomer(Customer customer) { 22 this.customer = customer; 23 } 24 25 public String getCity() { 26 return city; 27 } 28 public void setCity(String city) { 29 this.city = city; 30 } 31 public String getState() { 32 return state; 33 } 34 public void setState(String state) { 35 this.state = state; 36 } 37 public String getStreet() { 38 return street; 39 } 40 public void setStreet(String street) { 41 this.street = street; 42 } 43 public String getZip() { 44 return zip; 45 } 46 public void setZip(String zip) { 47 this.zip = zip; 48 } 49 public AddressId getAddressId() { 50 return addressId; 51 } 52 public void setAddressId(AddressId addressId) { 53 this.addressId = addressId; 54 } 55 } 56 | Popular Tags |