1
|
package eu.dnetlib.goldoa.domain;
|
2
|
|
3
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
4
|
|
5
|
import javax.persistence.Column;
|
6
|
import javax.persistence.Entity;
|
7
|
import javax.persistence.Id;
|
8
|
|
9
|
|
10
|
/**
|
11
|
* The persistent class for the file database table.
|
12
|
*
|
13
|
*/
|
14
|
@Entity
|
15
|
public class File implements IsSerializable {
|
16
|
private static final long serialVersionUID = 1L;
|
17
|
@Id
|
18
|
private String id;
|
19
|
|
20
|
private byte[] file;
|
21
|
|
22
|
@Column(columnDefinition = "text")
|
23
|
private String mimetype;
|
24
|
|
25
|
public File() {
|
26
|
}
|
27
|
|
28
|
public byte[] getFile() {
|
29
|
return this.file;
|
30
|
}
|
31
|
|
32
|
public void setFile(byte[] file) {
|
33
|
this.file = file;
|
34
|
}
|
35
|
|
36
|
public String getMimetype() {
|
37
|
return this.mimetype;
|
38
|
}
|
39
|
|
40
|
public void setMimetype(String mimetype) {
|
41
|
this.mimetype = mimetype;
|
42
|
}
|
43
|
|
44
|
public String getId() {
|
45
|
return id;
|
46
|
}
|
47
|
|
48
|
public void setId(String id) {
|
49
|
this.id = id;
|
50
|
}
|
51
|
}
|