blob: 87f560e2be18580453dd6dd9c102a9c4dc322c00 [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:
// 16/06/2010-2.2 mobrien - 316991: Attribute.getJavaMember() requires reflective getMethod call
// when only getMethodName is available on accessor for attributes of Embeddable types.
// http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/metamodel_api#DI_95:_20091017:_Attribute.getJavaMember.28.29_returns_null_for_a_BasicType_on_a_MappedSuperclass_because_of_an_uninitialized_accessor
package org.eclipse.persistence.testing.models.jpa.metamodel;
import jakarta.persistence.Access;
import jakarta.persistence.AccessType;
import jakarta.persistence.MappedSuperclass;
import jakarta.persistence.OneToOne;
@MappedSuperclass // concrete
@Access(AccessType.PROPERTY) // for 316991
public class MSRootPropertyAccess {
private ArrayProcessor primarySuperComputer;
@OneToOne // unidirectional
public ArrayProcessor getPrimarySuperComputer() {
return primarySuperComputer;
}
public void setPrimarySuperComputer(ArrayProcessor primarySuperComputer) {
this.primarySuperComputer = primarySuperComputer;
}
}