blob: 4b99ac568dbbfaf2df33577f3e67ba0cb8115fa1 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 1998, 2009 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* dclarke - initial JPA Employee example using XML (bug 217884)
******************************************************************************/
package model;
import java.io.Serializable;
public class Address implements Serializable {
private int id;
private String city;
private String country;
private String province;
private String postalCode;
private String street;
private static final long serialVersionUID = 1L;
public Address() {
}
public int getId() {
return this.id;
}
public void setId(int addressId) {
this.id = addressId;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public String getPostalCode() {
return this.postalCode;
}
public void setPostalCode(String pCode) {
this.postalCode = pCode;
}
public String getStreet() {
return street;
}
public void setStreet(String street) {
this.street = street;
}
public String toString() {
return "Address(" + getId() + ")";
}
}