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; /** * TocBookmark generated by hbm2java */ @Entity @Table(name="TOC_BOOKMARK" ) public class TocBookmark implements java.io.Serializable { private BigDecimal id; private CoToc coToc; private CoTocLink coTocLink; private Person person; private LearningContext learningContext; private BigDecimal createTs; private BigDecimal lastmodifyTs; private Integer tocLinkPosition; private String bookmarkComment; private Integer bookmarkPosition; private boolean commentHtmlEnabled; public TocBookmark() { } public TocBookmark(BigDecimal id, CoToc coToc, CoTocLink coTocLink, Person person, LearningContext learningContext, BigDecimal createTs, BigDecimal lastmodifyTs, boolean commentHtmlEnabled) { this.id = id; this.coToc = coToc; this.coTocLink = coTocLink; this.person = person; this.learningContext = learningContext; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.commentHtmlEnabled = commentHtmlEnabled; } public TocBookmark(BigDecimal id, CoToc coToc, CoTocLink coTocLink, Person person, LearningContext learningContext, BigDecimal createTs, BigDecimal lastmodifyTs, Integer tocLinkPosition, String bookmarkComment, Integer bookmarkPosition, boolean commentHtmlEnabled) { this.id = id; this.coToc = coToc; this.coTocLink = coTocLink; this.person = person; this.learningContext = learningContext; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.tocLinkPosition = tocLinkPosition; this.bookmarkComment = bookmarkComment; this.bookmarkPosition = bookmarkPosition; this.commentHtmlEnabled = commentHtmlEnabled; } @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="TOC_ID", nullable=false) public CoToc getCoToc() { return this.coToc; } public void setCoToc(CoToc coToc) { this.coToc = coToc; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="TOC_LINK_ID", nullable=false) public CoTocLink getCoTocLink() { return this.coTocLink; } public void setCoTocLink(CoTocLink coTocLink) { this.coTocLink = coTocLink; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="PERSON_ID", nullable=false) public Person getPerson() { return this.person; } public void setPerson(Person person) { this.person = person; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="LEARNING_CONTEXT_ID", nullable=false) public LearningContext getLearningContext() { return this.learningContext; } public void setLearningContext(LearningContext learningContext) { this.learningContext = learningContext; } @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="TOC_LINK_POSITION", precision=8, scale=0) public Integer getTocLinkPosition() { return this.tocLinkPosition; } public void setTocLinkPosition(Integer tocLinkPosition) { this.tocLinkPosition = tocLinkPosition; } @Column(name="BOOKMARK_COMMENT", length=4000) public String getBookmarkComment() { return this.bookmarkComment; } public void setBookmarkComment(String bookmarkComment) { this.bookmarkComment = bookmarkComment; } @Column(name="BOOKMARK_POSITION", precision=8, scale=0) public Integer getBookmarkPosition() { return this.bookmarkPosition; } public void setBookmarkPosition(Integer bookmarkPosition) { this.bookmarkPosition = bookmarkPosition; } @Column(name="COMMENT_HTML_ENABLED", nullable=false, precision=1, scale=0) public boolean isCommentHtmlEnabled() { return this.commentHtmlEnabled; } public void setCommentHtmlEnabled(boolean commentHtmlEnabled) { this.commentHtmlEnabled = commentHtmlEnabled; } }