package webctdbexport.db;
// Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1
import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
/**
* SrCriteria generated by hbm2java
*/
@Entity
@Table(name="SR_CRITERIA"
)
public class SrCriteria implements java.io.Serializable {
private BigDecimal id;
private SrHead srHead;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private String operand;
private String operator;
private String booleanOperator;
private Byte srLevel;
private Byte srType;
private Byte srOrder;
private BigDecimal operandId;
private String value;
private Set<SrCriteriaDetail> srCriteriaDetails = new HashSet<SrCriteriaDetail>(0);
public SrCriteria() {
}
public SrCriteria(BigDecimal id, SrHead srHead, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.id = id;
this.srHead = srHead;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
public SrCriteria(BigDecimal id, SrHead srHead, BigDecimal createTs, BigDecimal lastmodifyTs, String operand, String operator, String booleanOperator, Byte srLevel, Byte srType, Byte srOrder, BigDecimal operandId, String value, Set<SrCriteriaDetail> srCriteriaDetails) {
this.id = id;
this.srHead = srHead;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.operand = operand;
this.operator = operator;
this.booleanOperator = booleanOperator;
this.srLevel = srLevel;
this.srType = srType;
this.srOrder = srOrder;
this.operandId = operandId;
this.value = value;
this.srCriteriaDetails = srCriteriaDetails;
}
@Id
@Column(name="ID", nullable=false, precision=20, scale=0)
public BigDecimal getId() {
return this.id;
}
public void setId(BigDecimal id) {
this.id = id;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="HEAD_ID", nullable=false)
public SrHead getSrHead() {
return this.srHead;
}
public void setSrHead(SrHead srHead) {
this.srHead = srHead;
}
@Column(name="CREATE_TS", nullable=false, precision=20, scale=0)
public BigDecimal getCreateTs() {
return this.createTs;
}
public void setCreateTs(BigDecimal createTs) {
this.createTs = createTs;
}
@Column(name="LASTMODIFY_TS", nullable=false, precision=20, scale=0)
public BigDecimal getLastmodifyTs() {
return this.lastmodifyTs;
}
public void setLastmodifyTs(BigDecimal lastmodifyTs) {
this.lastmodifyTs = lastmodifyTs;
}
@Column(name="OPERAND", length=1024)
public String getOperand() {
return this.operand;
}
public void setOperand(String operand) {
this.operand = operand;
}
@Column(name="OPERATOR", length=64)
public String getOperator() {
return this.operator;
}
public void setOperator(String operator) {
this.operator = operator;
}
@Column(name="BOOLEAN_OPERATOR", length=10)
public String getBooleanOperator() {
return this.booleanOperator;
}
public void setBooleanOperator(String booleanOperator) {
this.booleanOperator = booleanOperator;
}
@Column(name="SR_LEVEL", precision=2, scale=0)
public Byte getSrLevel() {
return this.srLevel;
}
public void setSrLevel(Byte srLevel) {
this.srLevel = srLevel;
}
@Column(name="SR_TYPE", precision=2, scale=0)
public Byte getSrType() {
return this.srType;
}
public void setSrType(Byte srType) {
this.srType = srType;
}
@Column(name="SR_ORDER", precision=2, scale=0)
public Byte getSrOrder() {
return this.srOrder;
}
public void setSrOrder(Byte srOrder) {
this.srOrder = srOrder;
}
@Column(name="OPERAND_ID", precision=20, scale=0)
public BigDecimal getOperandId() {
return this.operandId;
}
public void setOperandId(BigDecimal operandId) {
this.operandId = operandId;
}
@Column(name="VALUE", length=4000)
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="srCriteria")
public Set<SrCriteriaDetail> getSrCriteriaDetails() {
return this.srCriteriaDetails;
}
public void setSrCriteriaDetails(Set<SrCriteriaDetail> srCriteriaDetails) {
this.srCriteriaDetails = srCriteriaDetails;
}
}