package eu.dnetlib.goldoa.domain;

import com.google.gwt.user.client.rpc.IsSerializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;


/**
 * The persistent class for the file database table.
 * 
 */
@Entity
public class File implements IsSerializable {
	private static final long serialVersionUID = 1L;
	@Id
	private String id;
	
	private byte[] file;
	
	@Column(columnDefinition = "text")
	private String mimetype;

	public File() {
	}

	public byte[] getFile() {
		return this.file;
	}

	public void setFile(byte[] file) {
		this.file = file;
	}

	public String getMimetype() {
		return this.mimetype;
	}

	public void setMimetype(String mimetype) {
		this.mimetype = mimetype;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
}