1
|
package eu.dnetlib.organizations.model;
|
2
|
|
3
|
import java.io.Serializable;
|
4
|
|
5
|
import javax.persistence.Column;
|
6
|
import javax.persistence.Entity;
|
7
|
import javax.persistence.Id;
|
8
|
import javax.persistence.Table;
|
9
|
|
10
|
import org.hibernate.annotations.Type;
|
11
|
import org.hibernate.annotations.TypeDef;
|
12
|
import org.hibernate.annotations.TypeDefs;
|
13
|
|
14
|
import com.vladmihalcea.hibernate.type.array.StringArrayType;
|
15
|
|
16
|
@Entity
|
17
|
@Table(name = "organizations_simple_view")
|
18
|
@TypeDefs({
|
19
|
@TypeDef(name = "string-array", typeClass = StringArrayType.class)
|
20
|
})
|
21
|
public class OrganizationSimpleView implements Serializable {
|
22
|
|
23
|
/**
|
24
|
*
|
25
|
*/
|
26
|
private static final long serialVersionUID = 417248897119259446L;
|
27
|
|
28
|
@Id
|
29
|
@Column(name = "id")
|
30
|
private String id;
|
31
|
|
32
|
@Column(name = "name")
|
33
|
private String name;
|
34
|
|
35
|
@Column(name = "city")
|
36
|
private String city;
|
37
|
|
38
|
@Column(name = "country")
|
39
|
private String country;
|
40
|
|
41
|
@Type(type = "string-array")
|
42
|
@Column(name = "acronyms", columnDefinition = "text[]")
|
43
|
private String[] acronyms;
|
44
|
|
45
|
@Type(type = "string-array")
|
46
|
@Column(name = "types", columnDefinition = "text[]")
|
47
|
private String[] types;
|
48
|
|
49
|
public String getId() {
|
50
|
return id;
|
51
|
}
|
52
|
|
53
|
public void setId(final String id) {
|
54
|
this.id = id;
|
55
|
}
|
56
|
|
57
|
public String getName() {
|
58
|
return name;
|
59
|
}
|
60
|
|
61
|
public void setName(final String name) {
|
62
|
this.name = name;
|
63
|
}
|
64
|
|
65
|
public String getCity() {
|
66
|
return city;
|
67
|
}
|
68
|
|
69
|
public void setCity(final String city) {
|
70
|
this.city = city;
|
71
|
}
|
72
|
|
73
|
public String getCountry() {
|
74
|
return country;
|
75
|
}
|
76
|
|
77
|
public void setCountry(final String country) {
|
78
|
this.country = country;
|
79
|
}
|
80
|
|
81
|
public String[] getAcronyms() {
|
82
|
return acronyms;
|
83
|
}
|
84
|
|
85
|
public void setAcronyms(final String[] acronyms) {
|
86
|
this.acronyms = acronyms;
|
87
|
}
|
88
|
|
89
|
public String[] getTypes() {
|
90
|
return types;
|
91
|
}
|
92
|
|
93
|
public void setTypes(final String[] types) {
|
94
|
this.types = types;
|
95
|
}
|
96
|
|
97
|
}
|