001/** 002 * Copyright 2005-2016 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.rice.kew.engine.node; 017 018import javax.persistence.Column; 019import javax.persistence.Entity; 020import javax.persistence.GeneratedValue; 021import javax.persistence.Id; 022import javax.persistence.Table; 023import javax.persistence.Version; 024import java.io.Serializable; 025 026/** 027 * Represents a Branch in the definition of a DocumentType. This should not be confused with the 028 * {@link Branch} class which represents the actual instance of a branch on a document. 029 * 030 * @author Kuali Rice Team (rice.collab@kuali.org) 031 */ 032@Entity 033@Table(name="KREW_RTE_BRCH_PROTO_T") 034//@Sequence(name="KREW_RTE_NODE_S", property="branchId") 035public class BranchPrototype implements Serializable { 036 037 private static final long serialVersionUID = 8645994738204838275L; 038 039 @Id 040 @GeneratedValue(generator="KREW_RTE_NODE_S") 041 @Column(name="RTE_BRCH_PROTO_ID") 042 private String branchId; 043 @Column(name="BRCH_NM") 044 private String name; 045 @Version 046 @Column(name="VER_NBR") 047 private Integer lockVerNbr; 048 049 public String getBranchId() { 050 return branchId; 051 } 052 053 public void setBranchId(String branchId) { 054 this.branchId = branchId; 055 } 056 057 public String getName() { 058 return name; 059 } 060 061 public void setName(String name) { 062 this.name = name; 063 } 064 065 public Integer getLockVerNbr() { 066 return lockVerNbr; 067 } 068 069 public void setLockVerNbr(Integer lockVerNbr) { 070 this.lockVerNbr = lockVerNbr; 071 } 072 073} 074