View Javadoc
1   package gboat2.attachment.model;
2   
3   // default package
4   
5   import java.util.Date;
6   
7   import javax.persistence.Column;
8   import javax.persistence.Entity;
9   import javax.persistence.GeneratedValue;
10  import javax.persistence.Id;
11  import javax.persistence.Table;
12  import javax.persistence.Temporal;
13  import javax.persistence.TemporalType;
14  
15  import org.hibernate.annotations.GenericGenerator;
16  
17  /**
18   * 文件下载记录.
19   */
20  @Entity
21  @Table(name = "gb_t_download"
22  
23  )
24  public class DownloadRecord implements java.io.Serializable {
25      
26      private static final long serialVersionUID = 1L;
27  	
28  	// Fields    
29  
30      private String downloadId;
31  	
32  	private String userId;
33  	
34  	private String userNameZh;
35  	
36  	private String userIp;
37  	
38  	private String organId;
39  	
40  	private String attachId;
41  	
42  	private String belongId;
43  	
44  	private String attachName;
45  	
46  	private String originalName;
47  	
48  	private Date downloadDate;
49  	
50  	@Id
51  	@GenericGenerator(name = "generator", strategy = "uuid.hex")
52  	@GeneratedValue(generator = "generator")
53  	@Column(name = "DOWNLOAD_ID", unique = true, nullable = false, length = 40)
54  	public String getDownloadId() {
55  		return this.downloadId;
56  	}
57  	
58  	public void setDownloadId(String downloadId) {
59  		this.downloadId = downloadId;
60  	}
61  	
62  	@Column(name = "USER_ID", length = 40)
63  	public String getUserId() {
64  		return userId;
65  	}
66  	
67  	public void setUserId(String userId) {
68  		this.userId = userId;
69  	}
70  	
71  	@Column(name = "USER_NAME_ZH", length = 500)
72  	public String getUserNameZh() {
73  		return userNameZh;
74  	}
75  	
76  	public void setUserNameZh(String userNameZh) {
77  		this.userNameZh = userNameZh;
78  	}
79  	
80  	@Column(name = "ATTACHMENT_ID", length = 40)
81  	public String getAttachId() {
82  		return this.attachId;
83  	}
84  	
85  	public void setAttachId(String attachId) {
86  		this.attachId = attachId;
87  	}
88  	
89  	@Column(name = "BELONG_ID", length = 40)
90  	public String getBelongId() {
91  		return this.belongId;
92  	}
93  	
94  	public void setBelongId(String belongId) {
95  		this.belongId = belongId;
96  	}
97  	
98  	@Temporal(TemporalType.TIMESTAMP)
99  	@Column(name = "DOWNLOAD_DATE", length = 16)
100 	public Date getDownloadDate() {
101 		return downloadDate;
102 	}
103 	
104 	public void setDownloadDate(Date downloadDate) {
105 		this.downloadDate = downloadDate;
106 	}
107 	
108 	@Column(name = "ATTACH_NAME", length = 300)
109 	public String getAttachName() {
110 		return this.attachName;
111 	}
112 	
113 	public void setAttachName(String attachName) {
114 		this.attachName = attachName;
115 	}
116 	
117 	@Column(name = "USER_IP", length = 200)
118 	public String getUserIp() {
119 		return userIp;
120 	}
121 	
122 	public void setUserIp(String userIp) {
123 		this.userIp = userIp;
124 	}
125 	
126 	@Column(name = "ORIGINAL_NAME", length = 300)
127 	public String getOriginalName() {
128 		return this.originalName;
129 	}
130 	
131 	public void setOriginalName(String originalName) {
132 		this.originalName = originalName;
133 	}
134 	
135 	@Column(name = "ORGAN_ID", length = 40)
136 	public String getOrganId() {
137 		return organId;
138 	}
139 	
140 	public void setOrganId(String organId) {
141 		this.organId = organId;
142 	}
143 }