blob: f0aed3eb23986da329c731515373a074bb1f6c25 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 1998, 2008 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 - JPA DAS INCUBATOR - Enhancement 258057
* http://wiki.eclipse.org/EclipseLink/Development/SDO-JPA
*
* This code is being developed under INCUBATION and is not currently included
* in the automated EclipseLink build. The API in this code may change, or
* may never be included in the product. Please provide feedback through mailing
* lists or the bug database.
******************************************************************************/
package model;
import java.io.Serializable;
import javax.persistence.*;
public class Address implements Serializable {
private int id;
private String city;
@Lob
@Basic(fetch=FetchType.LAZY)
private String country;
private String province;
private String postalCode;
private String street;
@OneToOne(mappedBy="address")
private Employee owner;
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 Employee getOwner() {
return this.owner;
}
public void setOwner(Employee owner) {
this.owner = owner;
}
}