001: package app.data;
002:
003: import java.sql.Timestamp;
004: import javax.persistence.Entity;
005: import javax.persistence.Id;
006: import javax.persistence.Lob;
007: import javax.persistence.ManyToOne;
008: import javax.persistence.Table;
009: import javax.persistence.Version;
010:
011: /**
012: * Bug Detail entity bean.
013: */
014: @Entity
015: @Table(name="b_bug_detail")
016: public class BugDetail {
017:
018: @Id
019: Integer id;
020:
021: String title;
022:
023: Timestamp postDate;
024:
025: @Lob
026: String body;
027:
028: Timestamp cretime;
029:
030: @Version
031: Timestamp updtime;
032:
033: @ManyToOne
034: User user;
035:
036: @ManyToOne
037: Bug bug;
038:
039: /**
040: * Return id.
041: */
042: public Integer getId() {
043: return id;
044: }
045:
046: /**
047: * Set id.
048: */
049: public void setId(Integer id) {
050: this .id = id;
051: }
052:
053: /**
054: * Return title.
055: */
056: public String getTitle() {
057: return title;
058: }
059:
060: /**
061: * Set title.
062: */
063: public void setTitle(String title) {
064: this .title = title;
065: }
066:
067: /**
068: * Return post date.
069: */
070: public Timestamp getPostDate() {
071: return postDate;
072: }
073:
074: /**
075: * Set post date.
076: */
077: public void setPostDate(Timestamp postDate) {
078: this .postDate = postDate;
079: }
080:
081: /**
082: * Return body.
083: */
084: public String getBody() {
085: return body;
086: }
087:
088: /**
089: * Set body.
090: */
091: public void setBody(String body) {
092: this .body = body;
093: }
094:
095: /**
096: * Return cretime.
097: */
098: public Timestamp getCretime() {
099: return cretime;
100: }
101:
102: /**
103: * Set cretime.
104: */
105: public void setCretime(Timestamp cretime) {
106: this .cretime = cretime;
107: }
108:
109: /**
110: * Return updtime.
111: */
112: public Timestamp getUpdtime() {
113: return updtime;
114: }
115:
116: /**
117: * Set updtime.
118: */
119: public void setUpdtime(Timestamp updtime) {
120: this .updtime = updtime;
121: }
122:
123: /**
124: * Return user.
125: */
126: public User getUser() {
127: return user;
128: }
129:
130: /**
131: * Set user.
132: */
133: public void setUser(User user) {
134: this .user = user;
135: }
136:
137: /**
138: * Return bug.
139: */
140: public Bug getBug() {
141: return bug;
142: }
143:
144: /**
145: * Set bug.
146: */
147: public void setBug(Bug bug) {
148: this.bug = bug;
149: }
150:
151: }
|