blob: 3afcef353c0d4a2780456af8efd740c6040fd165 [file] [log] [blame]
/*
* 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:
// Oracle - initial API and implementation from Oracle TopLink
package org.eclipse.persistence.testing.models.insurance;
/**
* <p><b>Purpose</b>: Represents an insurance health claim on a policy.
* <p><b>Description</b>: Held in a private 1:M relationship from Policy
* @see Policy
* @since TOPLink/Java 1.0
*/
public class HealthClaim extends Claim {
private String disease;
public HealthClaim() {
this.disease = "";
}
/**
* Return an example claim instance.
*/
public static HealthClaim example1() {
HealthClaim healthClaim = new HealthClaim();
healthClaim.setId(200);
healthClaim.setDisease("Flu");
healthClaim.setAmount(1000);
return healthClaim;
}
/**
* Return an example claim instance.
*/
public static HealthClaim example2() {
HealthClaim healthClaim = new HealthClaim();
healthClaim.setId(201);
healthClaim.setDisease("TB");
healthClaim.setAmount(7000);
return healthClaim;
}
public String getDisease() {
return disease;
}
public void setDisease(String disease) {
this.disease = disease;
}
}