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;

/**
 * Created by antleb on 4/7/16.
 */
@Entity
public class BudgetContract implements IsSerializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(columnDefinition = "text")
	private String id;
	@Column(columnDefinition = "text")
	private String contentType;
	private byte[] content;



	public BudgetContract() {
	}

	public BudgetContract(String id, String contentType, byte[] content) {
		this.id = id;
		this.contentType = contentType;
		this.content = content;
	}

	public String getId() {
		return id;
	}

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

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public byte[] getContent() {
		return content;
	}

	public void setContent(byte[] content) {
		this.content = content;
	}

}
