| /* |
| * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0, |
| * or the Eclipse Distribution License v. 1.0 which is available at |
| * http://www.eclipse.org/org/documents/edl-v10.php. |
| * |
| * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause |
| */ |
| |
| // Contributors: |
| // 01/23/2013-2.5 Guy Pelletier |
| // - 350487: JPA 2.1 Specification defined support for Stored Procedure Calls |
| package org.eclipse.persistence.testing.models.jpa21.advanced.xml; |
| |
| import java.io.Serializable; |
| import java.util.Collection; |
| import java.util.Vector; |
| |
| public class Address implements Serializable { |
| private int id; |
| private Integer version; |
| private String street; |
| private String city; |
| private String province; |
| private String postalCode; |
| private String country; |
| private Collection<Employee> employees; |
| |
| public Address() { |
| city = ""; |
| province = ""; |
| postalCode = ""; |
| street = ""; |
| country = ""; |
| employees = new Vector<Employee>(); |
| } |
| |
| public Address(String street, String city, String province, String country, String postalCode) { |
| this.street = street; |
| this.city = city; |
| this.province = province; |
| this.country = country; |
| this.postalCode = postalCode; |
| this.employees = new Vector<Employee>(); |
| } |
| |
| public String getCity() { |
| return city; |
| } |
| |
| public String getCountry() { |
| return country; |
| } |
| |
| public Collection<Employee> getEmployees() { |
| return employees; |
| } |
| |
| public int getId() { |
| return id; |
| } |
| |
| public String getPostalCode() { |
| return postalCode; |
| } |
| |
| public String getProvince() { |
| return province; |
| } |
| |
| public String getStreet() { |
| return street; |
| } |
| |
| public Integer getVersion() { |
| return version; |
| } |
| |
| public void setCity(String city) { |
| this.city = city; |
| } |
| |
| public void setCountry(String country) { |
| this.country = country; |
| } |
| |
| public void setEmployees(Collection<Employee> employees) { |
| this.employees = employees; |
| } |
| |
| public void setId(int id) { |
| this.id = id; |
| } |
| |
| public void setPostalCode(String postalCode) { |
| this.postalCode = postalCode; |
| } |
| |
| public void setProvince(String province) { |
| this.province = province; |
| } |
| |
| public void setStreet(String street) { |
| this.street = street; |
| } |
| |
| public void setVersion(Integer version) { |
| this.version = version; |
| } |
| |
| public String toString() { |
| return "Address: " + getId(); |
| } |
| } |