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.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;
/**
* AssmtAssessment generated by hbm2java
*/
@Entity
@Table(name="ASSMT_ASSESSMENT"
)
public class AssmtAssessment implements java.io.Serializable {
private BigDecimal id;
private CmsContentEntry cmsContentEntry;
private String ident;
private BigDecimal maxscore;
private short numassmtitems;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private Set<AssmtSubmission> assmtSubmissions = new HashSet<AssmtSubmission>(0);
private Set<AssmtSectionElement> assmtSectionElements = new HashSet<AssmtSectionElement>(0);
private Set<AssmtSetting> assmtSettings = new HashSet<AssmtSetting>(0);
public AssmtAssessment() {
}
public AssmtAssessment(CmsContentEntry cmsContentEntry, String ident, BigDecimal maxscore, short numassmtitems, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.cmsContentEntry = cmsContentEntry;
this.ident = ident;
this.maxscore = maxscore;
this.numassmtitems = numassmtitems;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
public AssmtAssessment(CmsContentEntry cmsContentEntry, String ident, BigDecimal maxscore, short numassmtitems, BigDecimal createTs, BigDecimal lastmodifyTs, Set<AssmtSubmission> assmtSubmissions, Set<AssmtSectionElement> assmtSectionElements, Set<AssmtSetting> assmtSettings) {
this.cmsContentEntry = cmsContentEntry;
this.ident = ident;
this.maxscore = maxscore;
this.numassmtitems = numassmtitems;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.assmtSubmissions = assmtSubmissions;
this.assmtSectionElements = assmtSectionElements;
this.assmtSettings = assmtSettings;
}
@GenericGenerator(name="generator", strategy="foreign", parameters=@Parameter(name="property", value="cmsContentEntry"))@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 CmsContentEntry getCmsContentEntry() {
return this.cmsContentEntry;
}
public void setCmsContentEntry(CmsContentEntry cmsContentEntry) {
this.cmsContentEntry = cmsContentEntry;
}
@Column(name="IDENT", nullable=false, length=768)
public String getIdent() {
return this.ident;
}
public void setIdent(String ident) {
this.ident = ident;
}
@Column(name="MAXSCORE", nullable=false, precision=12, scale=4)
public BigDecimal getMaxscore() {
return this.maxscore;
}
public void setMaxscore(BigDecimal maxscore) {
this.maxscore = maxscore;
}
@Column(name="NUMASSMTITEMS", nullable=false, precision=4, scale=0)
public short getNumassmtitems() {
return this.numassmtitems;
}
public void setNumassmtitems(short numassmtitems) {
this.numassmtitems = numassmtitems;
}
@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="assmtAssessment")
public Set<AssmtSubmission> getAssmtSubmissions() {
return this.assmtSubmissions;
}
public void setAssmtSubmissions(Set<AssmtSubmission> assmtSubmissions) {
this.assmtSubmissions = assmtSubmissions;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="assmtAssessment")
public Set<AssmtSectionElement> getAssmtSectionElements() {
return this.assmtSectionElements;
}
public void setAssmtSectionElements(Set<AssmtSectionElement> assmtSectionElements) {
this.assmtSectionElements = assmtSectionElements;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="assmtAssessment")
public Set<AssmtSetting> getAssmtSettings() {
return this.assmtSettings;
}
public void setAssmtSettings(Set<AssmtSetting> assmtSettings) {
this.assmtSettings = assmtSettings;
}
}