@@ -0,0 +1,1558 @@
+import java.io.Serializable;%0Aimport java.util.Date;%0A%0Aimport javax.persistence.Column;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.Temporal;%0Aimport javax.persistence.TemporalType;%0A/**%0A * %E5%AD%98%E6%94%BE%E4%B8%8A%E4%BC%A0%E7%9A%84%E6%96%87%E4%BB%B6%0A *%0A */%0A@Entity%0Apublic class UploadFile implements Serializable%7B%0A%09private static final long serialVersionUID = 7291850395925809042L;%0A%09private Integer id;%0A%09private String filepath;%0A%09private Date uploadtime = new Date();%0A%09%0A%09public UploadFile() %7B%7D%0A%09%0A%09public UploadFile(String filepath) %7B%0A%09%09this.filepath = filepath;%0A%09%7D%0A%09@Id @GeneratedValue%0A%09public Integer getId() %7B%0A%09%09return id;%0A%09%7D%0A%09public void setId(Integer id) %7B%0A%09%09this.id = id;%0A%09%7D%0A%09@Column(nullable=false,length=80)%0A%09public String getFilepath() %7B%0A%09%09return filepath;%0A%09%7D%0A%09public void setFilepath(String filepath) %7B%0A%09%09this.filepath = filepath;%0A%09%7D%0A%09@Temporal(TemporalType.TIMESTAMP)%0A%09public Date getUploadtime() %7B%0A%09%09return uploadtime;%0A%09%7D%0A%09public void setUploadtime(Date uploadtime) %7B%0A%09%09this.uploadtime = uploadtime;%0A%09%7D%0A%09@Override%0A%09public int hashCode() %7B%0A%09%09final int prime = 31;%0A%09%09int result = 1;%0A%09%09result = prime * result + ((id == null) ? 0 : id.hashCode());%0A%09%09return result;%0A%09%7D%0A%09@Override%0A%09public boolean equals(Object obj) %7B%0A%09%09if (this == obj)%0A%09%09%09return true;%0A%09%09if (obj == null)%0A%09%09%09return false;%0A%09%09if (getClass() != obj.getClass())%0A%09%09%09return false;%0A%09%09final UploadFile other = (UploadFile) obj;%0A%09%09if (id == null) %7B%0A%09%09%09if (other.id != null)%0A%09%09%09%09return false;%0A%09%09%7D else if (!id.equals(other.id))%0A%09%09%09return false;%0A%09%09return true;%0A%09%7D%0A%09%0A%7D%0A

Create UploadFile.java