| /* |
| * Copyright (c) 1998, 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: |
| // James - initial impl |
| package org.eclipse.persistence.testing.models.plsql; |
| |
| import java.math.BigDecimal; |
| |
| /** |
| * Used to test simple PLSQL record types. |
| * |
| * @author James |
| */ |
| public class Address { |
| protected BigDecimal id; |
| protected Integer number; |
| protected String street; |
| protected String city; |
| protected String state; |
| |
| public String getCity() { |
| return city; |
| } |
| |
| public void setCity(String city) { |
| this.city = city; |
| } |
| |
| public BigDecimal getId() { |
| return id; |
| } |
| |
| public void setId(BigDecimal id) { |
| this.id = id; |
| } |
| |
| public Integer getNumber() { |
| return number; |
| } |
| |
| public void setNumber(Integer number) { |
| this.number = number; |
| } |
| |
| public String getStreet() { |
| return street; |
| } |
| |
| public void setStreet(String street) { |
| this.street = street; |
| } |
| |
| public String getState() { |
| return state; |
| } |
| |
| public void setState(String state) { |
| this.state = state; |
| } |
| |
| public boolean equals(Object object) { |
| if (!(object instanceof Address)) { |
| return false; |
| } |
| Address address = (Address)object; |
| if (this.id != null && !this.id.equals(address.id)) { |
| return false; |
| } |
| if (this.number != null && !this.number.equals(address.number)) { |
| return false; |
| } |
| if (this.street != null && !this.street.equals(address.street)) { |
| return false; |
| } |
| if (this.city != null && !this.city.equals(address.city)) { |
| return false; |
| } |
| if (this.state != null && !this.state.equals(address.state)) { |
| return false; |
| } |
| return true; |
| } |
| } |