001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one
003: * or more contributor license agreements. See the NOTICE file
004: * distributed with this work for additional information
005: * regarding copyright ownership. The ASF licenses this file
006: * to you under the Apache License, Version 2.0 (the
007: * "License"); you may not use this file except in compliance
008: * with the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing,
013: * software distributed under the License is distributed on an
014: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015: * KIND, either express or implied. See the License for the
016: * specific language governing permissions and limitations
017: * under the License.
018: */
019: package org.apache.openjpa.persistence.jdbc.common.apps;
020:
021: import java.util.*;
022: import javax.persistence.Entity;
023:
024: /**
025: * <p>Persistent type used for testing.</p>
026: *
027: * @author Abe White
028: */
029: @Entity
030: public class MappingTest1 {
031: private int value = 0;
032: private int otherTableValue = 0;
033: private Object blob = null;
034: private MappingTest2 oneOne = null;
035: private MappingTest1 selfOneOne = null;
036: private MappingTest2 otherTableOneOne = null;
037: private MappingTest2 inverseOwnerOneOne = null;
038: private MappingTest2 inverseOneOne = null;
039: private Set collection = new HashSet();
040: private Set inverseOwnerOneMany = new HashSet();
041: private Set oneMany = new HashSet();
042: private List manyMany = new LinkedList();
043: private Set inverseOwnerManyMany = new HashSet();
044: private Map map = new HashMap();
045: private Map nManyMap = new HashMap();
046: private Map manyManyMap = new HashMap();
047: private int transactionalValue = 0;
048:
049: public int getValue() {
050: return this .value;
051: }
052:
053: public void setValue(int value) {
054: this .value = value;
055: }
056:
057: public int getOtherTableValue() {
058: return this .otherTableValue;
059: }
060:
061: public void setOtherTableValue(int otherTableValue) {
062: this .otherTableValue = otherTableValue;
063: }
064:
065: public Object getBlob() {
066: return this .blob;
067: }
068:
069: public void setBlob(Object blob) {
070: this .blob = blob;
071: }
072:
073: public MappingTest2 getOneOne() {
074: return this .oneOne;
075: }
076:
077: public void setOneOne(MappingTest2 oneOne) {
078: this .oneOne = oneOne;
079: }
080:
081: public MappingTest1 getSelfOneOne() {
082: return this .selfOneOne;
083: }
084:
085: public void setSelfOneOne(MappingTest1 selfOneOne) {
086: this .selfOneOne = selfOneOne;
087: }
088:
089: public MappingTest2 getOtherTableOneOne() {
090: return this .otherTableOneOne;
091: }
092:
093: public void setOtherTableOneOne(MappingTest2 otherTableOneOne) {
094: this .otherTableOneOne = otherTableOneOne;
095: }
096:
097: public MappingTest2 getInverseOwnerOneOne() {
098: return this .inverseOwnerOneOne;
099: }
100:
101: public void setInverseOwnerOneOne(MappingTest2 inverseOwnerOneOne) {
102: this .inverseOwnerOneOne = inverseOwnerOneOne;
103: }
104:
105: public MappingTest2 getInverseOneOne() {
106: return this .inverseOneOne;
107: }
108:
109: public void setInverseOneOne(MappingTest2 inverseOneOne) {
110: this .inverseOneOne = inverseOneOne;
111: }
112:
113: public Set getCollection() {
114: return this .collection;
115: }
116:
117: public void setCollection(Set collection) {
118: this .collection = collection;
119: }
120:
121: public Set getInverseOwnerOneMany() {
122: return this .inverseOwnerOneMany;
123: }
124:
125: public void setInverseOwnerOneMany(Set inverseOwnerOneMany) {
126: this .inverseOwnerOneMany = inverseOwnerOneMany;
127: }
128:
129: public Set getOneMany() {
130: return this .oneMany;
131: }
132:
133: public void setOneMany(Set oneMany) {
134: this .oneMany = oneMany;
135: }
136:
137: public List getManyMany() {
138: return this .manyMany;
139: }
140:
141: public void setManyMany(List manyMany) {
142: this .manyMany = manyMany;
143: }
144:
145: public Set getInverseOwnerManyMany() {
146: return this .inverseOwnerManyMany;
147: }
148:
149: public void setInverseOwnerManyMany(Set inverseOwnerManyMany) {
150: this .inverseOwnerManyMany = inverseOwnerManyMany;
151: }
152:
153: public Map getMap() {
154: return this .map;
155: }
156:
157: public void setMap(Map map) {
158: this .map = map;
159: }
160:
161: public Map getNManyMap() {
162: return this .nManyMap;
163: }
164:
165: public void setNManyMap(Map nManyMap) {
166: this .nManyMap = nManyMap;
167: }
168:
169: public Map getManyManyMap() {
170: return this .manyManyMap;
171: }
172:
173: public void setManyManyMap(Map manyManyMap) {
174: this .manyManyMap = manyManyMap;
175: }
176:
177: public int getTransactionalValue() {
178: return this .transactionalValue;
179: }
180:
181: public void setTransactionalValue(int transactionalValue) {
182: this.transactionalValue = transactionalValue;
183: }
184: }
|