001: package app.data.test;
002:
003: import java.sql.Timestamp;
004: import java.util.List;
005: import javax.persistence.Entity;
006: import javax.persistence.Id;
007: import javax.persistence.OneToMany;
008: import javax.persistence.Table;
009: import javax.persistence.Version;
010:
011: /**
012: * Forum entity bean.
013: */
014: @Entity
015: @Table(name="f_forum")
016: public class Forum {
017:
018: @Id
019: Integer id;
020:
021: String title;
022:
023: Integer topicCount;
024:
025: Integer sortOrder;
026:
027: Timestamp cretime;
028:
029: @Version
030: Timestamp updtime;
031:
032: @OneToMany
033: List<Topic> topics;
034:
035: /**
036: * Return id.
037: */
038: public Integer getId() {
039: return id;
040: }
041:
042: /**
043: * Set id.
044: */
045: public void setId(Integer id) {
046: this .id = id;
047: }
048:
049: /**
050: * Return title.
051: */
052: public String getTitle() {
053: return title;
054: }
055:
056: /**
057: * Set title.
058: */
059: public void setTitle(String title) {
060: this .title = title;
061: }
062:
063: /**
064: * Return topic count.
065: */
066: public Integer getTopicCount() {
067: return topicCount;
068: }
069:
070: /**
071: * Set topic count.
072: */
073: public void setTopicCount(Integer topicCount) {
074: this .topicCount = topicCount;
075: }
076:
077: /**
078: * Return sort order.
079: */
080: public Integer getSortOrder() {
081: return sortOrder;
082: }
083:
084: /**
085: * Set sort order.
086: */
087: public void setSortOrder(Integer sortOrder) {
088: this .sortOrder = sortOrder;
089: }
090:
091: /**
092: * Return cretime.
093: */
094: public Timestamp getCretime() {
095: return cretime;
096: }
097:
098: /**
099: * Set cretime.
100: */
101: public void setCretime(Timestamp cretime) {
102: this .cretime = cretime;
103: }
104:
105: /**
106: * Return updtime.
107: */
108: public Timestamp getUpdtime() {
109: return updtime;
110: }
111:
112: /**
113: * Set updtime.
114: */
115: public void setUpdtime(Timestamp updtime) {
116: this .updtime = updtime;
117: }
118:
119: /**
120: * Return topics.
121: */
122: public List<Topic> getTopics() {
123: return topics;
124: }
125:
126: /**
127: * Set topics.
128: */
129: public void setTopics(List<Topic> topics) {
130: this.topics = topics;
131: }
132:
133: }
|