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.Lob;
008: import javax.persistence.ManyToOne;
009: import javax.persistence.OneToMany;
010: import javax.persistence.Table;
011: import javax.persistence.Version;
012:
013: /**
014: * Bug entity bean.
015: */
016: @Entity
017: @Table(name="b_bug")
018: public class Bug {
019:
020: @Id
021: Integer id;
022:
023: String title;
024:
025: @Lob
026: String body;
027:
028: @Lob
029: String resolution;
030:
031: String reportedVersion;
032:
033: String fixedVersion;
034:
035: String duplicateOf;
036:
037: Timestamp cretime;
038:
039: @Version
040: Timestamp updtime;
041:
042: @ManyToOne
043: User userAssigned;
044:
045: @ManyToOne
046: Product product;
047:
048: @ManyToOne
049: User userLogged;
050:
051: @ManyToOne
052: BugPriority priority;
053:
054: @ManyToOne
055: BugType type;
056:
057: @ManyToOne
058: BugStatus status;
059:
060: @OneToMany
061: List<BugAttachment> attachments;
062:
063: @OneToMany
064: List<BugDetail> details;
065:
066: /**
067: * Return id.
068: */
069: public Integer getId() {
070: return id;
071: }
072:
073: /**
074: * Set id.
075: */
076: public void setId(Integer id) {
077: this .id = id;
078: }
079:
080: /**
081: * Return title.
082: */
083: public String getTitle() {
084: return title;
085: }
086:
087: /**
088: * Set title.
089: */
090: public void setTitle(String title) {
091: this .title = title;
092: }
093:
094: /**
095: * Return body.
096: */
097: public String getBody() {
098: return body;
099: }
100:
101: /**
102: * Set body.
103: */
104: public void setBody(String body) {
105: this .body = body;
106: }
107:
108: /**
109: * Return resolution.
110: */
111: public String getResolution() {
112: return resolution;
113: }
114:
115: /**
116: * Set resolution.
117: */
118: public void setResolution(String resolution) {
119: this .resolution = resolution;
120: }
121:
122: /**
123: * Return reported version.
124: */
125: public String getReportedVersion() {
126: return reportedVersion;
127: }
128:
129: /**
130: * Set reported version.
131: */
132: public void setReportedVersion(String reportedVersion) {
133: this .reportedVersion = reportedVersion;
134: }
135:
136: /**
137: * Return fixed version.
138: */
139: public String getFixedVersion() {
140: return fixedVersion;
141: }
142:
143: /**
144: * Set fixed version.
145: */
146: public void setFixedVersion(String fixedVersion) {
147: this .fixedVersion = fixedVersion;
148: }
149:
150: /**
151: * Return duplicate of.
152: */
153: public String getDuplicateOf() {
154: return duplicateOf;
155: }
156:
157: /**
158: * Set duplicate of.
159: */
160: public void setDuplicateOf(String duplicateOf) {
161: this .duplicateOf = duplicateOf;
162: }
163:
164: /**
165: * Return cretime.
166: */
167: public Timestamp getCretime() {
168: return cretime;
169: }
170:
171: /**
172: * Set cretime.
173: */
174: public void setCretime(Timestamp cretime) {
175: this .cretime = cretime;
176: }
177:
178: /**
179: * Return updtime.
180: */
181: public Timestamp getUpdtime() {
182: return updtime;
183: }
184:
185: /**
186: * Set updtime.
187: */
188: public void setUpdtime(Timestamp updtime) {
189: this .updtime = updtime;
190: }
191:
192: /**
193: * Return user assigned.
194: */
195: public User getUserAssigned() {
196: return userAssigned;
197: }
198:
199: /**
200: * Set user assigned.
201: */
202: public void setUserAssigned(User userAssigned) {
203: this .userAssigned = userAssigned;
204: }
205:
206: /**
207: * Return product.
208: */
209: public Product getProduct() {
210: return product;
211: }
212:
213: /**
214: * Set product.
215: */
216: public void setProduct(Product product) {
217: this .product = product;
218: }
219:
220: /**
221: * Return user logged.
222: */
223: public User getUserLogged() {
224: return userLogged;
225: }
226:
227: /**
228: * Set user logged.
229: */
230: public void setUserLogged(User userLogged) {
231: this .userLogged = userLogged;
232: }
233:
234: /**
235: * Return priority.
236: */
237: public BugPriority getPriority() {
238: return priority;
239: }
240:
241: /**
242: * Set priority.
243: */
244: public void setPriority(BugPriority priority) {
245: this .priority = priority;
246: }
247:
248: /**
249: * Return type.
250: */
251: public BugType getType() {
252: return type;
253: }
254:
255: /**
256: * Set type.
257: */
258: public void setType(BugType type) {
259: this .type = type;
260: }
261:
262: /**
263: * Return status.
264: */
265: public BugStatus getStatus() {
266: return status;
267: }
268:
269: /**
270: * Set status.
271: */
272: public void setStatus(BugStatus status) {
273: this .status = status;
274: }
275:
276: /**
277: * Return attachments.
278: */
279: public List<BugAttachment> getAttachments() {
280: return attachments;
281: }
282:
283: /**
284: * Set attachments.
285: */
286: public void setAttachments(List<BugAttachment> attachments) {
287: this .attachments = attachments;
288: }
289:
290: /**
291: * Return details.
292: */
293: public List<BugDetail> getDetails() {
294: return details;
295: }
296:
297: /**
298: * Set details.
299: */
300: public void setDetails(List<BugDetail> details) {
301: this.details = details;
302: }
303:
304: }
|