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.OneToOne;
import javax.persistence.Table;
/**
* AssmtSectionElement generated by hbm2java
*/
@Entity
@Table(name="ASSMT_SECTION_ELEMENT"
)
public class AssmtSectionElement implements java.io.Serializable {
private BigDecimal id;
private AssmtAssessment assmtAssessment;
private AssmtSectionElement assmtSectionElementBySectionParentId;
private AssmtSectionElement assmtSectionElementByPreviousElementId;
private String ident;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private String name;
private Set<AssmtSectionElement> assmtSectionElementsForPreviousElementId = new HashSet<AssmtSectionElement>(0);
private AssmtQuestionLink assmtQuestionLink;
private AssmtQuestionSet assmtQuestionSet;
private Set<AssmtSectionElement> assmtSectionElementsForSectionParentId = new HashSet<AssmtSectionElement>(0);
public AssmtSectionElement() {
}
public AssmtSectionElement(BigDecimal id, AssmtAssessment assmtAssessment, String ident, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.id = id;
this.assmtAssessment = assmtAssessment;
this.ident = ident;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
public AssmtSectionElement(BigDecimal id, AssmtAssessment assmtAssessment, AssmtSectionElement assmtSectionElementBySectionParentId, AssmtSectionElement assmtSectionElementByPreviousElementId, String ident, BigDecimal createTs, BigDecimal lastmodifyTs, String name, Set<AssmtSectionElement> assmtSectionElementsForPreviousElementId, AssmtQuestionLink assmtQuestionLink, AssmtQuestionSet assmtQuestionSet, Set<AssmtSectionElement> assmtSectionElementsForSectionParentId) {
this.id = id;
this.assmtAssessment = assmtAssessment;
this.assmtSectionElementBySectionParentId = assmtSectionElementBySectionParentId;
this.assmtSectionElementByPreviousElementId = assmtSectionElementByPreviousElementId;
this.ident = ident;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.name = name;
this.assmtSectionElementsForPreviousElementId = assmtSectionElementsForPreviousElementId;
this.assmtQuestionLink = assmtQuestionLink;
this.assmtQuestionSet = assmtQuestionSet;
this.assmtSectionElementsForSectionParentId = assmtSectionElementsForSectionParentId;
}
@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="ASSESSMENT_ID", nullable=false)
public AssmtAssessment getAssmtAssessment() {
return this.assmtAssessment;
}
public void setAssmtAssessment(AssmtAssessment assmtAssessment) {
this.assmtAssessment = assmtAssessment;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="SECTION_PARENT_ID")
public AssmtSectionElement getAssmtSectionElementBySectionParentId() {
return this.assmtSectionElementBySectionParentId;
}
public void setAssmtSectionElementBySectionParentId(AssmtSectionElement assmtSectionElementBySectionParentId) {
this.assmtSectionElementBySectionParentId = assmtSectionElementBySectionParentId;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="PREVIOUS_ELEMENT_ID")
public AssmtSectionElement getAssmtSectionElementByPreviousElementId() {
return this.assmtSectionElementByPreviousElementId;
}
public void setAssmtSectionElementByPreviousElementId(AssmtSectionElement assmtSectionElementByPreviousElementId) {
this.assmtSectionElementByPreviousElementId = assmtSectionElementByPreviousElementId;
}
@Column(name="IDENT", nullable=false, length=768)
public String getIdent() {
return this.ident;
}
public void setIdent(String ident) {
this.ident = ident;
}
@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="NAME", length=800)
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="assmtSectionElementByPreviousElementId")
public Set<AssmtSectionElement> getAssmtSectionElementsForPreviousElementId() {
return this.assmtSectionElementsForPreviousElementId;
}
public void setAssmtSectionElementsForPreviousElementId(Set<AssmtSectionElement> assmtSectionElementsForPreviousElementId) {
this.assmtSectionElementsForPreviousElementId = assmtSectionElementsForPreviousElementId;
}
@OneToOne(fetch=FetchType.EAGER, mappedBy="assmtSectionElement")
public AssmtQuestionLink getAssmtQuestionLink() {
return this.assmtQuestionLink;
}
public void setAssmtQuestionLink(AssmtQuestionLink assmtQuestionLink) {
this.assmtQuestionLink = assmtQuestionLink;
}
@OneToOne(fetch=FetchType.EAGER, mappedBy="assmtSectionElement")
public AssmtQuestionSet getAssmtQuestionSet() {
return this.assmtQuestionSet;
}
public void setAssmtQuestionSet(AssmtQuestionSet assmtQuestionSet) {
this.assmtQuestionSet = assmtQuestionSet;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="assmtSectionElementBySectionParentId")
public Set<AssmtSectionElement> getAssmtSectionElementsForSectionParentId() {
return this.assmtSectionElementsForSectionParentId;
}
public void setAssmtSectionElementsForSectionParentId(Set<AssmtSectionElement> assmtSectionElementsForSectionParentId) {
this.assmtSectionElementsForSectionParentId = assmtSectionElementsForSectionParentId;
}
}