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;
/**
* LcTermMapping generated by hbm2java
*/
@Entity
@Table(name="LC_TERM_MAPPING"
)
public class LcTermMapping implements java.io.Serializable {
private BigDecimal id;
private LearningContext learningContext;
private LcTerm lcTerm;
private String assignedSourceName;
private String assignedSourceId;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
public LcTermMapping() {
}
public LcTermMapping(BigDecimal id, LearningContext learningContext, LcTerm lcTerm, String assignedSourceName, String assignedSourceId, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.id = id;
this.learningContext = learningContext;
this.lcTerm = lcTerm;
this.assignedSourceName = assignedSourceName;
this.assignedSourceId = assignedSourceId;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
@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="ASSIGNED_LCID", unique=true, nullable=false)
public LearningContext getLearningContext() {
return this.learningContext;
}
public void setLearningContext(LearningContext learningContext) {
this.learningContext = learningContext;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="LC_TERM_ID", nullable=false)
public LcTerm getLcTerm() {
return this.lcTerm;
}
public void setLcTerm(LcTerm lcTerm) {
this.lcTerm = lcTerm;
}
@Column(name="ASSIGNED_SOURCE_NAME", nullable=false, length=510)
public String getAssignedSourceName() {
return this.assignedSourceName;
}
public void setAssignedSourceName(String assignedSourceName) {
this.assignedSourceName = assignedSourceName;
}
@Column(name="ASSIGNED_SOURCE_ID", nullable=false, length=768)
public String getAssignedSourceId() {
return this.assignedSourceId;
}
public void setAssignedSourceId(String assignedSourceId) {
this.assignedSourceId = assignedSourceId;
}
@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;
}
}