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; /** * AgnSubmissionComment generated by hbm2java */ @Entity @Table(name="AGN_SUBMISSION_COMMENT" ) public class AgnSubmissionComment implements java.io.Serializable { private BigDecimal id; private AgnSubmission agnSubmission; private String submComment; private BigDecimal createTs; private BigDecimal lastmodifyTs; private BigDecimal commentDate; private String authorNameGiven; private String authorNameFamily; private String authorRole; private String commentStatus; public AgnSubmissionComment() { } public AgnSubmissionComment(BigDecimal id, AgnSubmission agnSubmission, String submComment, BigDecimal createTs, BigDecimal lastmodifyTs) { this.id = id; this.agnSubmission = agnSubmission; this.submComment = submComment; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; } public AgnSubmissionComment(BigDecimal id, AgnSubmission agnSubmission, String submComment, BigDecimal createTs, BigDecimal lastmodifyTs, BigDecimal commentDate, String authorNameGiven, String authorNameFamily, String authorRole, String commentStatus) { this.id = id; this.agnSubmission = agnSubmission; this.submComment = submComment; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.commentDate = commentDate; this.authorNameGiven = authorNameGiven; this.authorNameFamily = authorNameFamily; this.authorRole = authorRole; this.commentStatus = commentStatus; } @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="SUBMISSION_ID", nullable=false) public AgnSubmission getAgnSubmission() { return this.agnSubmission; } public void setAgnSubmission(AgnSubmission agnSubmission) { this.agnSubmission = agnSubmission; } @Column(name="SUBM_COMMENT", nullable=false, length=4000) public String getSubmComment() { return this.submComment; } public void setSubmComment(String submComment) { this.submComment = submComment; } @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="COMMENT_DATE", precision=20, scale=0) public BigDecimal getCommentDate() { return this.commentDate; } public void setCommentDate(BigDecimal commentDate) { this.commentDate = commentDate; } @Column(name="AUTHOR_NAME_GIVEN", length=768) public String getAuthorNameGiven() { return this.authorNameGiven; } public void setAuthorNameGiven(String authorNameGiven) { this.authorNameGiven = authorNameGiven; } @Column(name="AUTHOR_NAME_FAMILY", length=768) public String getAuthorNameFamily() { return this.authorNameFamily; } public void setAuthorNameFamily(String authorNameFamily) { this.authorNameFamily = authorNameFamily; } @Column(name="AUTHOR_ROLE", length=30) public String getAuthorRole() { return this.authorRole; } public void setAuthorRole(String authorRole) { this.authorRole = authorRole; } @Column(name="COMMENT_STATUS", length=40) public String getCommentStatus() { return this.commentStatus; } public void setCommentStatus(String commentStatus) { this.commentStatus = commentStatus; } }