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;
/**
* CpmLcGroupDef generated by hbm2java
*/
@Entity
@Table(name="CPM_LC_GROUP_DEF"
)
public class CpmLcGroupDef implements java.io.Serializable {
private BigDecimal id;
private LcType lcType;
private String groupType;
private boolean systemFlag;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private String upGroupType;
private String downGroupType;
private Set<CpmApplicableRoleId> cpmApplicableRoleIds = new HashSet<CpmApplicableRoleId>(0);
private Set<CpmLcGroupRel> cpmLcGroupRels = new HashSet<CpmLcGroupRel>(0);
private Set<CpmFolderPermDef> cpmFolderPermDefs = new HashSet<CpmFolderPermDef>(0);
public CpmLcGroupDef() {
}
public CpmLcGroupDef(BigDecimal id, LcType lcType, String groupType, boolean systemFlag, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.id = id;
this.lcType = lcType;
this.groupType = groupType;
this.systemFlag = systemFlag;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
public CpmLcGroupDef(BigDecimal id, LcType lcType, String groupType, boolean systemFlag, BigDecimal createTs, BigDecimal lastmodifyTs, String upGroupType, String downGroupType, Set<CpmApplicableRoleId> cpmApplicableRoleIds, Set<CpmLcGroupRel> cpmLcGroupRels, Set<CpmFolderPermDef> cpmFolderPermDefs) {
this.id = id;
this.lcType = lcType;
this.groupType = groupType;
this.systemFlag = systemFlag;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.upGroupType = upGroupType;
this.downGroupType = downGroupType;
this.cpmApplicableRoleIds = cpmApplicableRoleIds;
this.cpmLcGroupRels = cpmLcGroupRels;
this.cpmFolderPermDefs = cpmFolderPermDefs;
}
@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_TYPE_CODE", nullable=false)
public LcType getLcType() {
return this.lcType;
}
public void setLcType(LcType lcType) {
this.lcType = lcType;
}
@Column(name="GROUP_TYPE", nullable=false, length=128)
public String getGroupType() {
return this.groupType;
}
public void setGroupType(String groupType) {
this.groupType = groupType;
}
@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="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="UP_GROUP_TYPE", length=128)
public String getUpGroupType() {
return this.upGroupType;
}
public void setUpGroupType(String upGroupType) {
this.upGroupType = upGroupType;
}
@Column(name="DOWN_GROUP_TYPE", length=128)
public String getDownGroupType() {
return this.downGroupType;
}
public void setDownGroupType(String downGroupType) {
this.downGroupType = downGroupType;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="cpmLcGroupDef")
public Set<CpmApplicableRoleId> getCpmApplicableRoleIds() {
return this.cpmApplicableRoleIds;
}
public void setCpmApplicableRoleIds(Set<CpmApplicableRoleId> cpmApplicableRoleIds) {
this.cpmApplicableRoleIds = cpmApplicableRoleIds;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="cpmLcGroupDef")
public Set<CpmLcGroupRel> getCpmLcGroupRels() {
return this.cpmLcGroupRels;
}
public void setCpmLcGroupRels(Set<CpmLcGroupRel> cpmLcGroupRels) {
this.cpmLcGroupRels = cpmLcGroupRels;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="cpmLcGroupDef")
public Set<CpmFolderPermDef> getCpmFolderPermDefs() {
return this.cpmFolderPermDefs;
}
public void setCpmFolderPermDefs(Set<CpmFolderPermDef> cpmFolderPermDefs) {
this.cpmFolderPermDefs = cpmFolderPermDefs;
}
}