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;
/**
* GradeBookAuditLogValue generated by hbm2java
*/
@Entity
@Table(name="GRADE_BOOK_AUDIT_LOG_VALUE"
)
public class GradeBookAuditLogValue implements java.io.Serializable {
private BigDecimal id;
private GradeBookAuditLog gradeBookAuditLog;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private String originalValue;
private String newValue;
public GradeBookAuditLogValue() {
}
public GradeBookAuditLogValue(GradeBookAuditLog gradeBookAuditLog, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.gradeBookAuditLog = gradeBookAuditLog;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
public GradeBookAuditLogValue(GradeBookAuditLog gradeBookAuditLog, BigDecimal createTs, BigDecimal lastmodifyTs, String originalValue, String newValue) {
this.gradeBookAuditLog = gradeBookAuditLog;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.originalValue = originalValue;
this.newValue = newValue;
}
@GenericGenerator(name="generator", strategy="foreign", parameters=@Parameter(name="property", value="gradeBookAuditLog"))@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 GradeBookAuditLog getGradeBookAuditLog() {
return this.gradeBookAuditLog;
}
public void setGradeBookAuditLog(GradeBookAuditLog gradeBookAuditLog) {
this.gradeBookAuditLog = gradeBookAuditLog;
}
@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="ORIGINAL_VALUE", length=4000)
public String getOriginalValue() {
return this.originalValue;
}
public void setOriginalValue(String originalValue) {
this.originalValue = originalValue;
}
@Column(name="NEW_VALUE", length=4000)
public String getNewValue() {
return this.newValue;
}
public void setNewValue(String newValue) {
this.newValue = newValue;
}
}