图片上传
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
package com.fangjia.dal.sql.fangjia.dao;
|
||||
|
||||
import com.fangjia.dal.SqlDao;
|
||||
import com.fangjia.dal.sql.model.ReportFileAttach;
|
||||
import com.fangjia.dal.sql.model.UserCity;
|
||||
|
||||
public interface ReportFileAttachDao extends SqlDao<ReportFileAttach>{
|
||||
|
||||
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package com.fangjia.dal.sql.fangjia.dao;
|
||||
|
||||
import com.fangjia.dal.GoojiaFangjiaSqlDao;
|
||||
import com.fangjia.dal.sql.model.ReportFileAttach;
|
||||
|
||||
public class ReportFileAttachDaoImpl extends GoojiaFangjiaSqlDao<ReportFileAttach> implements ReportFileAttachDao{
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package com.fangjia.dal.sql.model;
|
||||
|
||||
import com.fangjia.dal.SqlEntity;
|
||||
|
||||
import javax.persistence.*;
|
||||
|
||||
@Entity
|
||||
@Table(name = "report_file_attach")
|
||||
public class ReportFileAttach implements SqlEntity {
|
||||
private long id;
|
||||
private Integer userId;
|
||||
private Integer evaluationId;
|
||||
private String queryId;
|
||||
private Integer fileClass;
|
||||
private String fileName;
|
||||
private String fileId;
|
||||
|
||||
@Id
|
||||
@Column(name = "id")
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Column(name = "user_id")
|
||||
public Integer getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
@Column(name = "evaluation_id")
|
||||
public Integer getEvaluationId() {
|
||||
return evaluationId;
|
||||
}
|
||||
|
||||
public void setEvaluationId(Integer evaluationId) {
|
||||
this.evaluationId = evaluationId;
|
||||
}
|
||||
|
||||
@Column(name = "query_id")
|
||||
public String getQueryId() {
|
||||
return queryId;
|
||||
}
|
||||
|
||||
public void setQueryId(String queryId) {
|
||||
this.queryId = queryId;
|
||||
}
|
||||
|
||||
@Column(name = "file_class")
|
||||
public Integer getFileClass() {
|
||||
return fileClass;
|
||||
}
|
||||
|
||||
public void setFileClass(Integer fileClass) {
|
||||
this.fileClass = fileClass;
|
||||
}
|
||||
|
||||
@Column(name = "file_name")
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
@Column(name = "file_id")
|
||||
public String getFileId() {
|
||||
return fileId;
|
||||
}
|
||||
|
||||
public void setFileId(String fileId) {
|
||||
this.fileId = fileId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user