package webctdbexport.db;
// Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1
import java.math.BigDecimal;
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.Table;
/**
* CpmFolderPermDef generated by hbm2java
*/
@Entity
@Table(name="CPM_FOLDER_PERM_DEF"
)
public class CpmFolderPermDef implements java.io.Serializable {
private BigDecimal id;
private CpmLcFolderDef cpmLcFolderDef;
private CpmLcGroupDef cpmLcGroupDef;
private CpmRule cpmRule;
private boolean systemFlag;
private String permissionSet;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
public CpmFolderPermDef() {
}
public CpmFolderPermDef(BigDecimal id, CpmLcFolderDef cpmLcFolderDef, CpmLcGroupDef cpmLcGroupDef, CpmRule cpmRule, boolean systemFlag, String permissionSet, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.id = id;
this.cpmLcFolderDef = cpmLcFolderDef;
this.cpmLcGroupDef = cpmLcGroupDef;
this.cpmRule = cpmRule;
this.systemFlag = systemFlag;
this.permissionSet = permissionSet;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
@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="LC_FOLDER_DEF_ID", nullable=false)
public CpmLcFolderDef getCpmLcFolderDef() {
return this.cpmLcFolderDef;
}
public void setCpmLcFolderDef(CpmLcFolderDef cpmLcFolderDef) {
this.cpmLcFolderDef = cpmLcFolderDef;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="LC_GROUP_DEF_ID", nullable=false)
public CpmLcGroupDef getCpmLcGroupDef() {
return this.cpmLcGroupDef;
}
public void setCpmLcGroupDef(CpmLcGroupDef cpmLcGroupDef) {
this.cpmLcGroupDef = cpmLcGroupDef;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="RULE_ID", nullable=false)
public CpmRule getCpmRule() {
return this.cpmRule;
}
public void setCpmRule(CpmRule cpmRule) {
this.cpmRule = cpmRule;
}
@Column(name="SYSTEM_FLAG", nullable=false, precision=1, scale=0)
public boolean isSystemFlag() {
return this.systemFlag;
}
public void setSystemFlag(boolean systemFlag) {
this.systemFlag = systemFlag;
}
@Column(name="PERMISSION_SET", nullable=false, length=32)
public String getPermissionSet() {
return this.permissionSet;
}
public void setPermissionSet(String permissionSet) {
this.permissionSet = permissionSet;
}
@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;
}
}