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 javax.persistence.Column;
022: import javax.persistence.Entity;
023: import javax.persistence.Id;
024: import javax.persistence.Table;
025:
026: @Entity
027: @Table(name="valstratpc")
028: public class ValueStrategyPC {
029:
030: @Id
031: private int id;
032:
033: @Column(length=35)
034: private String uuid;
035: @Column(length=35)
036: private String uuidHex;
037: @Column(length=35)
038: private String name;
039: @Column(name="ignupdate")
040: private int ignoreUpdate;
041: @Column(name="resupdate")
042: private int restrictUpdate;
043: private int version;
044: private int sequence;
045:
046: public ValueStrategyPC() {
047: }
048:
049: public ValueStrategyPC(int id) {
050: this .id = id;
051: }
052:
053: public String getName() {
054: return this .name;
055: }
056:
057: public void setName(String name) {
058: this .name = name;
059: }
060:
061: public int getIgnoreUpdate() {
062: return this .ignoreUpdate;
063: }
064:
065: public void setIgnoreUpdate(int ignoreUpdate) {
066: this .ignoreUpdate = ignoreUpdate;
067: }
068:
069: public int getRestrictUpdate() {
070: return this .restrictUpdate;
071: }
072:
073: public void setRestrictUpdate(int restrictUpdate) {
074: this .restrictUpdate = restrictUpdate;
075: }
076:
077: public String getUUID() {
078: return this .uuid;
079: }
080:
081: public void setUUID(String uuid) {
082: this .uuid = uuid;
083: }
084:
085: public String getUUIDHex() {
086: return this .uuidHex;
087: }
088:
089: public void setUUIDHex(String uuidHex) {
090: this .uuidHex = uuidHex;
091: }
092:
093: public int getVersion() {
094: return this .version;
095: }
096:
097: public void setVersion(int version) {
098: this .version = version;
099: }
100:
101: public int getSequence() {
102: return this .sequence;
103: }
104:
105: public void setSequence(int sequence) {
106: this .sequence = sequence;
107: }
108:
109: public int getId() {
110: return id;
111: }
112:
113: public void setId(int id) {
114: this .id = id;
115: }
116:
117: public String getUuid() {
118: return uuid;
119: }
120:
121: public void setUuid(String uuid) {
122: this .uuid = uuid;
123: }
124:
125: public String getUuidHex() {
126: return uuidHex;
127: }
128:
129: public void setUuidHex(String uuidHex) {
130: this.uuidHex = uuidHex;
131: }
132: }
|