/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.processFlow.knowledgeService;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Version;
/**
* the table stores the knowledge session busy/available data structure
*
* @author tanxu
* @date Mar 1, 2012
* @since
*/
@Entity
@SequenceGenerator(name="sessProcXrefIdSeq", sequenceName="SESSION_PROC_XREF_ID_SEQ")
public class SessionProcessXref {
@Id
@GeneratedValue(strategy = GenerationType.AUTO, generator="sessProcXrefIdSeq")
private Long id;
private Integer sessionId;
private Long processInstanceId;
private String processId;
private int status;
@Version
@Column(name = "OPTLOCK")
private int version;
public SessionProcessXref() {
}
/**
* @return the id
*/
public Long getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(Long id) {
this.id = id;
}
/**
* @return the sessionId
*/
public Integer getSessionId() {
return sessionId;
}
/**
* @param sessionId the sessionId to set
*/
public void setSessionId(Integer sessionId) {
this.sessionId = sessionId;
}
/**
* @return the processInstanceId
*/
public Long getProcessInstanceId() {
return processInstanceId;
}
/**
* @param processInstanceId the processInstanceId to set
*/
public void setProcessInstanceId(Long processInstanceId) {
this.processInstanceId = processInstanceId;
}
/**
* @return the processId
*/
public String getProcessId() {
return processId;
}
/**
* @param processId the processId to set
*/
public void setProcessId(String processId) {
this.processId = processId;
}
/**
* @return the status
*/
public int getStatus() {
return status;
}
/**
* @param status the status to set
*/
public void setStatus(int status) {
this.status = status;
}
/**
* @return the version
*/
public int getVersion() {
return version;
}
/**
* @param version the version to set
*/
public void setVersion(int version) {
this.version = version;
}
}