KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > typedmanytoone > Address


1 //$Id: Address.java,v 1.1 2005/06/01 03:51:32 oneovthafew Exp $
2
package org.hibernate.test.typedmanytoone;
3
4 import java.io.Serializable JavaDoc;
5
6 /**
7  * @author Gavin King
8  */

9 public class Address implements Serializable JavaDoc {
10     
11     private AddressId addressId;
12     private String JavaDoc street;
13     private String JavaDoc city;
14     private String JavaDoc state;
15     private String JavaDoc 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 JavaDoc getCity() {
26         return city;
27     }
28     public void setCity(String JavaDoc city) {
29         this.city = city;
30     }
31     public String JavaDoc getState() {
32         return state;
33     }
34     public void setState(String JavaDoc state) {
35         this.state = state;
36     }
37     public String JavaDoc getStreet() {
38         return street;
39     }
40     public void setStreet(String JavaDoc street) {
41         this.street = street;
42     }
43     public String JavaDoc getZip() {
44         return zip;
45     }
46     public void setZip(String JavaDoc 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