Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2005-2013 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package org.kuali.rice.kew.engine.node;
Represents a Branch in the definition of a DocumentType. This should not be confused with the Branch class which represents the actual instance of a branch on a document.

Author(s):
Kuali Rice Team (rice.collab@kuali.org)
@Table(name="KREW_RTE_BRCH_PROTO_T")
//@Sequence(name="KREW_RTE_NODE_S", property="branchId")
public class BranchPrototype implements Serializable {
	private static final long serialVersionUID = 8645994738204838275L;
    
    @Id
    @GeneratedValue(generator="KREW_RTE_NODE_S")
	@GenericGenerator(name="KREW_RTE_NODE_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={
			@Parameter(name="sequence_name",value="KREW_RTE_NODE_S"),
			@Parameter(name="value_column",value="id")
	})
	@Column(name="RTE_BRCH_PROTO_ID")
	private String branchId;
	@Column(name="BRCH_NM")
	private String name;
	@Column(name="VER_NBR")
	private Integer lockVerNbr;
	public String getBranchId() {
		return ;
	}
	public void setBranchId(String branchId) {
		this. = branchId;
	}
	public String getName() {
		return ;
	}
	public void setName(String name) {
		this. = name;
	}
	public Integer getLockVerNbr() {
		return ;
	}
	public void setLockVerNbr(Integer lockVerNbr) {
		this. = lockVerNbr;
	}
	//@PrePersist
	public void beforeInsert(){
		OrmUtils.populateAutoIncValue(this, KEWServiceLocator.getEntityManagerFactory().createEntityManager());
	}
New to GrepCode? Check out our FAQ X