65 lines
1.2 KiB
Java
65 lines
1.2 KiB
Java
package ru.ulstu.file.model;
|
|
|
|
import ru.ulstu.core.model.BaseEntity;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Table;
|
|
import java.util.Date;
|
|
|
|
@Entity
|
|
@Table(name = "file")
|
|
public class FileData extends BaseEntity {
|
|
private String name;
|
|
|
|
private long size;
|
|
|
|
@Column(name = "create_date")
|
|
private Date createDate;
|
|
|
|
private byte[] data;
|
|
|
|
@Column(name = "is_latex_attach")
|
|
private Boolean isLatexAttach;
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public long getSize() {
|
|
return size;
|
|
}
|
|
|
|
public void setSize(long size) {
|
|
this.size = size;
|
|
}
|
|
|
|
public Date getCreateDate() {
|
|
return createDate;
|
|
}
|
|
|
|
public void setCreateDate(Date createDate) {
|
|
this.createDate = createDate;
|
|
}
|
|
|
|
public byte[] getData() {
|
|
return data;
|
|
}
|
|
|
|
public void setData(byte[] data) {
|
|
this.data = data;
|
|
}
|
|
|
|
public Boolean isLatexAttach() {
|
|
return isLatexAttach;
|
|
}
|
|
|
|
public void setLatexAttach(Boolean latexAttach) {
|
|
isLatexAttach = latexAttach;
|
|
}
|
|
}
|