blob: 441155182478348c0ea3e56afd11dd3612da8802 [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.inheritance;
public class A_King2 {
private int index;
private String bar;
public A_King2() {
super();
}
public static A_King2 exp1() {
A_King2 a1 = new A_King2();
a1.setIndex(1);
a1.setBar("this is bar");
return a1;
}
public static A_King2 exp2() {
A_King2 a2 = new A_King2();
a2.setIndex(2);
a2.setBar("this is bar two");
return a2;
}
public String getBar() {
return bar;
}
public int getIndex() {
return index;
}
public void setBar(String theBar) {
bar = theBar;
}
public void setIndex(int theIndex) {
index = theIndex;
}
}