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.GeneratedValue; import javax.persistence.Id; import javax.persistence.OneToOne; import javax.persistence.Table; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Parameter; /** * AssmtQuestionSet generated by hbm2java */ @Entity @Table(name="ASSMT_QUESTION_SET" ) public class AssmtQuestionSet implements java.io.Serializable { private BigDecimal id; private AssmtSectionElement assmtSectionElement; private BigDecimal pointsperquestion; private int numberofquestions; private BigDecimal createTs; private BigDecimal lastmodifyTs; public AssmtQuestionSet() { } public AssmtQuestionSet(AssmtSectionElement assmtSectionElement, BigDecimal pointsperquestion, int numberofquestions, BigDecimal createTs, BigDecimal lastmodifyTs) { this.assmtSectionElement = assmtSectionElement; this.pointsperquestion = pointsperquestion; this.numberofquestions = numberofquestions; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; } @GenericGenerator(name="generator", strategy="foreign", parameters=@Parameter(name="property", value="assmtSectionElement"))@Id @GeneratedValue(generator="generator") @Column(name="ID", nullable=false, precision=20, scale=0) public BigDecimal getId() { return this.id; } public void setId(BigDecimal id) { this.id = id; } @OneToOne(fetch=FetchType.LAZY) public AssmtSectionElement getAssmtSectionElement() { return this.assmtSectionElement; } public void setAssmtSectionElement(AssmtSectionElement assmtSectionElement) { this.assmtSectionElement = assmtSectionElement; } @Column(name="POINTSPERQUESTION", nullable=false, precision=8, scale=4) public BigDecimal getPointsperquestion() { return this.pointsperquestion; } public void setPointsperquestion(BigDecimal pointsperquestion) { this.pointsperquestion = pointsperquestion; } @Column(name="NUMBEROFQUESTIONS", nullable=false, precision=6, scale=0) public int getNumberofquestions() { return this.numberofquestions; } public void setNumberofquestions(int numberofquestions) { this.numberofquestions = numberofquestions; } @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; } }