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; /** * SelfEnrollmentLc generated by hbm2java */ @Entity @Table(name="SELF_ENROLLMENT_LC" ) public class SelfEnrollmentLc implements java.io.Serializable { private BigDecimal id; private CmsContentEntry cmsContentEntry; private LearningContext learningContext; private GenericGroup genericGroup; private boolean studentViewEnrollmentFl; private BigDecimal createTs; private BigDecimal lastmodifyTs; private Integer maxEnrollmentNum; public SelfEnrollmentLc() { } public SelfEnrollmentLc(BigDecimal id, CmsContentEntry cmsContentEntry, boolean studentViewEnrollmentFl, BigDecimal createTs, BigDecimal lastmodifyTs) { this.id = id; this.cmsContentEntry = cmsContentEntry; this.studentViewEnrollmentFl = studentViewEnrollmentFl; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; } public SelfEnrollmentLc(BigDecimal id, CmsContentEntry cmsContentEntry, LearningContext learningContext, GenericGroup genericGroup, boolean studentViewEnrollmentFl, BigDecimal createTs, BigDecimal lastmodifyTs, Integer maxEnrollmentNum) { this.id = id; this.cmsContentEntry = cmsContentEntry; this.learningContext = learningContext; this.genericGroup = genericGroup; this.studentViewEnrollmentFl = studentViewEnrollmentFl; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.maxEnrollmentNum = maxEnrollmentNum; } @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="CONTENT_ENTRY_ID", nullable=false) public CmsContentEntry getCmsContentEntry() { return this.cmsContentEntry; } public void setCmsContentEntry(CmsContentEntry cmsContentEntry) { this.cmsContentEntry = cmsContentEntry; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="LEARNING_CONTEXT_ID") public LearningContext getLearningContext() { return this.learningContext; } public void setLearningContext(LearningContext learningContext) { this.learningContext = learningContext; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="GENERIC_GROUP_ID") public GenericGroup getGenericGroup() { return this.genericGroup; } public void setGenericGroup(GenericGroup genericGroup) { this.genericGroup = genericGroup; } @Column(name="STUDENT_VIEW_ENROLLMENT_FL", nullable=false, precision=1, scale=0) public boolean isStudentViewEnrollmentFl() { return this.studentViewEnrollmentFl; } public void setStudentViewEnrollmentFl(boolean studentViewEnrollmentFl) { this.studentViewEnrollmentFl = studentViewEnrollmentFl; } @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="MAX_ENROLLMENT_NUM", precision=6, scale=0) public Integer getMaxEnrollmentNum() { return this.maxEnrollmentNum; } public void setMaxEnrollmentNum(Integer maxEnrollmentNum) { this.maxEnrollmentNum = maxEnrollmentNum; } }