01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19: package org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype;
20:
21: import javax.persistence.*;
22:
23: /**
24: * Entity test object that uses property access mode.
25: */
26: @Entity
27: public class PropertyAccess1 {
28:
29: private int id;
30: private String name;
31: private int intVal; // this intentionally does not match the getter name
32:
33: protected PropertyAccess1() {
34: }
35:
36: public PropertyAccess1(int id) {
37: this .id = id;
38: }
39:
40: @Id
41: public int getId() {
42: return id;
43: }
44:
45: public void setId(int id) {
46: this .id = id;
47: }
48:
49: public String getName() {
50: return name;
51: }
52:
53: public void setName(String n) {
54: this .name = n;
55: }
56:
57: public int getIntValue() {
58: return intVal;
59: }
60:
61: public void setIntValue(int intVal) {
62: this.intVal = intVal;
63: }
64: }
|