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