com.sippnex.fileblade.entities.File Maven / Gradle / Ivy
package com.sippnex.fileblade.entities;
import javax.persistence.*;
@Entity
public class File extends FilebladeItem {
@Lob
private byte[] content;
private String contentType;
public byte[] getContent() {
return content;
}
public void setContent(byte[] content) {
this.content = content;
}
public String getContentType() {
return contentType;
}
public void setContentType(String contentType) {
this.contentType = contentType;
}
public File(String name, byte[] content, String contentType) {
super(name);
this.content = content;
this.contentType = contentType;
}
public File(String name, byte[] content, String contentType, Directory parentDirectory) {
super(name, parentDirectory);
this.content = content;
this.contentType = contentType;
}
public File() {
}
}