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.kernel.common.apps;
020:
021: import java.io.Serializable;
022: import javax.persistence.Column;
023: import javax.persistence.Entity;
024:
025: @Entity
026: public class LockGroupPC implements Serializable {
027:
028: @Column(name="DEF_LockGSF")
029: private String defaultLockGroupStringField;
030: @Column(name="EXDEF_LockGIF")
031: private int explicitDefaultLockGroupIntField;
032:
033: @Column(name="LockGIF")
034: private int lockGroup0IntField;
035: @Column(name="LockGSF")
036: private String lockGroup0StringField;
037:
038: @Column(name="LockGRF")
039: private transient RuntimeTest1 lockGroup1RelationField;
040: @Column(name="LGF")
041: private int lockGroup1IntField;
042:
043: @Column(name="UNLS")
044: private String unlockedStringField;
045:
046: public void setDefaultLockGroupStringField(String val) {
047: defaultLockGroupStringField = val;
048: }
049:
050: public String getDefaultLockGroupStringField() {
051: return defaultLockGroupStringField;
052: }
053:
054: public void setExplicitDefaultLockGroupIntField(int val) {
055: explicitDefaultLockGroupIntField = val;
056: }
057:
058: public int getExplicitDefaultLockGroupIntField() {
059: return explicitDefaultLockGroupIntField;
060: }
061:
062: public void setLockGroup0IntField(int val) {
063: lockGroup0IntField = val;
064: }
065:
066: public int getLockGroup0IntField() {
067: return lockGroup0IntField;
068: }
069:
070: public void setLockGroup0StringField(String val) {
071: lockGroup0StringField = val;
072: }
073:
074: public String getLockGroup0StringField() {
075: return lockGroup0StringField;
076: }
077:
078: public void setLockGroup1RelationField(RuntimeTest1 val) {
079: lockGroup1RelationField = val;
080: }
081:
082: public RuntimeTest1 getLockGroup1RelationField() {
083: return lockGroup1RelationField;
084: }
085:
086: public void setLockGroup1IntField(int val) {
087: lockGroup1IntField = val;
088: }
089:
090: public int getLockGroup1IntField() {
091: return lockGroup1IntField;
092: }
093:
094: public void setUnlockedStringField(String val) {
095: unlockedStringField = val;
096: }
097:
098: public String getUnlockedStringField() {
099: return unlockedStringField;
100: }
101: }
|