Project

General

Profile

1
package eu.dnetlib.goldoa.domain;
2

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

    
5
import javax.persistence.Entity;
6
import javax.persistence.GeneratedValue;
7
import javax.persistence.GenerationType;
8
import javax.persistence.Id;
9

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

    
17
	@Id
18
	private String id;
19
	private String contentType;
20
	private byte[] content;
21

    
22
	public BudgetContract() {
23
	}
24

    
25
	public BudgetContract(String id, String contentType, byte[] content) {
26
		this.id = id;
27
		this.contentType = contentType;
28
		this.content = content;
29
	}
30

    
31
	public String getId() {
32
		return id;
33
	}
34

    
35
	public void setId(String id) {
36
		this.id = id;
37
	}
38

    
39
	public String getContentType() {
40
		return contentType;
41
	}
42

    
43
	public void setContentType(String contentType) {
44
		this.contentType = contentType;
45
	}
46

    
47
	public byte[] getContent() {
48
		return content;
49
	}
50

    
51
	public void setContent(byte[] content) {
52
		this.content = content;
53
	}
54
}
(17-17/117)