All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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() {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy