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.OneToMany;
import javax.persistence.Table;
/**
* CmsInterfaceType generated by hbm2java
*/
@Entity
@Table(name="CMS_INTERFACE_TYPE"
)
public class CmsInterfaceType implements java.io.Serializable {
private BigDecimal id;
private String name;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private Set<CmsInfExtendInf> cmsInfExtendInfsForInfId = new HashSet<CmsInfExtendInf>(0);
private Set<CmsEntryImplInf> cmsEntryImplInfs = new HashSet<CmsEntryImplInf>(0);
private Set<CmsInfExtendInf> cmsInfExtendInfsForSubInfId = new HashSet<CmsInfExtendInf>(0);
public CmsInterfaceType() {
}
public CmsInterfaceType(BigDecimal id, String name, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.id = id;
this.name = name;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
public CmsInterfaceType(BigDecimal id, String name, BigDecimal createTs, BigDecimal lastmodifyTs, Set<CmsInfExtendInf> cmsInfExtendInfsForInfId, Set<CmsEntryImplInf> cmsEntryImplInfs, Set<CmsInfExtendInf> cmsInfExtendInfsForSubInfId) {
this.id = id;
this.name = name;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.cmsInfExtendInfsForInfId = cmsInfExtendInfsForInfId;
this.cmsEntryImplInfs = cmsEntryImplInfs;
this.cmsInfExtendInfsForSubInfId = cmsInfExtendInfsForSubInfId;
}
@Id
@Column(name="ID", nullable=false, precision=20, scale=0)
public BigDecimal getId() {
return this.id;
}
public void setId(BigDecimal id) {
this.id = id;
}
@Column(name="NAME", unique=true, nullable=false, length=100)
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
@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;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="cmsInterfaceTypeByInfId")
public Set<CmsInfExtendInf> getCmsInfExtendInfsForInfId() {
return this.cmsInfExtendInfsForInfId;
}
public void setCmsInfExtendInfsForInfId(Set<CmsInfExtendInf> cmsInfExtendInfsForInfId) {
this.cmsInfExtendInfsForInfId = cmsInfExtendInfsForInfId;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="cmsInterfaceType")
public Set<CmsEntryImplInf> getCmsEntryImplInfs() {
return this.cmsEntryImplInfs;
}
public void setCmsEntryImplInfs(Set<CmsEntryImplInf> cmsEntryImplInfs) {
this.cmsEntryImplInfs = cmsEntryImplInfs;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="cmsInterfaceTypeBySubInfId")
public Set<CmsInfExtendInf> getCmsInfExtendInfsForSubInfId() {
return this.cmsInfExtendInfsForSubInfId;
}
public void setCmsInfExtendInfsForSubInfId(Set<CmsInfExtendInf> cmsInfExtendInfsForSubInfId) {
this.cmsInfExtendInfsForSubInfId = cmsInfExtendInfsForSubInfId;
}
}