/*******************************************************************************
* Copyright (c) 2011, 2015 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 v1.0 and Eclipse Distribution License v. 1.0
* which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* 06/18/2010-2.2 Guy Pelletier
* - 300458: EclispeLink should throw a more specific exception than NPE
* 07/16/2010-2.2 Guy Pelletier
* - 260296: mixed access with no Transient annotation does not result in error
******************************************************************************/
package org.eclipse.persistence.testing.models.jpa.inherited;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name="JPA_NOISY")
@Access(AccessType.FIELD)
public class NoiseBylaw extends Bylaw {
// The access type is FIELD. If we map this map instead of its associated
// methods marked as access PROPERTY, we will map the wrong column name
// and tests from InheritedModelJunitTest.
public String description;
@Access(AccessType.PROPERTY)
@Column(name="DESCRIP")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}