1
|
package eu.dnetlib.organizations.model.view;
|
2
|
|
3
|
import java.io.Serializable;
|
4
|
import java.time.OffsetDateTime;
|
5
|
import java.util.Set;
|
6
|
|
7
|
import javax.persistence.Column;
|
8
|
import javax.persistence.Entity;
|
9
|
import javax.persistence.Id;
|
10
|
import javax.persistence.Table;
|
11
|
|
12
|
import org.hibernate.annotations.Type;
|
13
|
import org.hibernate.annotations.TypeDef;
|
14
|
import org.hibernate.annotations.TypeDefs;
|
15
|
|
16
|
import com.vladmihalcea.hibernate.type.json.JsonBinaryType;
|
17
|
import com.vladmihalcea.hibernate.type.json.JsonStringType;
|
18
|
|
19
|
@Entity
|
20
|
@Table(name = "organizations_view")
|
21
|
@TypeDefs({
|
22
|
@TypeDef(name = "json", typeClass = JsonStringType.class),
|
23
|
@TypeDef(name = "jsonb", typeClass = JsonBinaryType.class)
|
24
|
})
|
25
|
public class OrganizationView implements Serializable {
|
26
|
|
27
|
/**
|
28
|
*
|
29
|
*/
|
30
|
private static final long serialVersionUID = -7864607073631041868L;
|
31
|
|
32
|
@Id
|
33
|
@Column(name = "id")
|
34
|
private String id;
|
35
|
|
36
|
@Column(name = "name")
|
37
|
private String name;
|
38
|
|
39
|
@Column(name = "lat")
|
40
|
private Double lat;
|
41
|
|
42
|
@Column(name = "lng")
|
43
|
private Double lng;
|
44
|
|
45
|
@Column(name = "city")
|
46
|
private String city;
|
47
|
|
48
|
@Column(name = "country")
|
49
|
private String country;
|
50
|
|
51
|
@Column(name = "created_by")
|
52
|
private String createdBy;
|
53
|
|
54
|
@Column(name = "creation_date")
|
55
|
private OffsetDateTime creationDate;
|
56
|
|
57
|
@Column(name = "modified_by")
|
58
|
private String modifiedBy;
|
59
|
|
60
|
@Column(name = "modification_date")
|
61
|
private OffsetDateTime modificationDate;
|
62
|
|
63
|
@Type(type = "jsonb")
|
64
|
@Column(name = "other_ids", columnDefinition = "jsonb")
|
65
|
private Set<OtherIdentifier> otherIdentifiers;
|
66
|
|
67
|
@Type(type = "jsonb")
|
68
|
@Column(name = "other_names", columnDefinition = "jsonb")
|
69
|
private Set<OtherName> otherNames;
|
70
|
|
71
|
@Type(type = "jsonb")
|
72
|
@Column(name = "acronyms", columnDefinition = "jsonb")
|
73
|
private Set<String> acronyms;
|
74
|
|
75
|
@Type(type = "jsonb")
|
76
|
@Column(name = "types", columnDefinition = "jsonb")
|
77
|
private Set<String> types;
|
78
|
|
79
|
@Type(type = "jsonb")
|
80
|
@Column(name = "urls", columnDefinition = "jsonb")
|
81
|
private Set<String> urls;
|
82
|
|
83
|
public String getId() {
|
84
|
return id;
|
85
|
}
|
86
|
|
87
|
public void setId(final String id) {
|
88
|
this.id = id;
|
89
|
}
|
90
|
|
91
|
public String getName() {
|
92
|
return name;
|
93
|
}
|
94
|
|
95
|
public void setName(final String name) {
|
96
|
this.name = name;
|
97
|
}
|
98
|
|
99
|
public Double getLat() {
|
100
|
return lat;
|
101
|
}
|
102
|
|
103
|
public void setLat(final Double lat) {
|
104
|
this.lat = lat;
|
105
|
}
|
106
|
|
107
|
public Double getLng() {
|
108
|
return lng;
|
109
|
}
|
110
|
|
111
|
public void setLng(final Double lng) {
|
112
|
this.lng = lng;
|
113
|
}
|
114
|
|
115
|
public String getCity() {
|
116
|
return city;
|
117
|
}
|
118
|
|
119
|
public void setCity(final String city) {
|
120
|
this.city = city;
|
121
|
}
|
122
|
|
123
|
public String getCountry() {
|
124
|
return country;
|
125
|
}
|
126
|
|
127
|
public void setCountry(final String country) {
|
128
|
this.country = country;
|
129
|
}
|
130
|
|
131
|
public String getCreatedBy() {
|
132
|
return createdBy;
|
133
|
}
|
134
|
|
135
|
public void setCreatedBy(final String createdBy) {
|
136
|
this.createdBy = createdBy;
|
137
|
}
|
138
|
|
139
|
public OffsetDateTime getCreationDate() {
|
140
|
return creationDate;
|
141
|
}
|
142
|
|
143
|
public void setCreationDate(final OffsetDateTime creationDate) {
|
144
|
this.creationDate = creationDate;
|
145
|
}
|
146
|
|
147
|
public String getModifiedBy() {
|
148
|
return modifiedBy;
|
149
|
}
|
150
|
|
151
|
public void setModifiedBy(final String modifiedBy) {
|
152
|
this.modifiedBy = modifiedBy;
|
153
|
}
|
154
|
|
155
|
public OffsetDateTime getModificationDate() {
|
156
|
return modificationDate;
|
157
|
}
|
158
|
|
159
|
public void setModificationDate(final OffsetDateTime modificationDate) {
|
160
|
this.modificationDate = modificationDate;
|
161
|
}
|
162
|
|
163
|
public Set<OtherIdentifier> getOtherIdentifiers() {
|
164
|
return otherIdentifiers;
|
165
|
}
|
166
|
|
167
|
public void setOtherIdentifiers(final Set<OtherIdentifier> otherIdentifiers) {
|
168
|
this.otherIdentifiers = otherIdentifiers;
|
169
|
}
|
170
|
|
171
|
public Set<OtherName> getOtherNames() {
|
172
|
return otherNames;
|
173
|
}
|
174
|
|
175
|
public void setOtherNames(final Set<OtherName> otherNames) {
|
176
|
this.otherNames = otherNames;
|
177
|
}
|
178
|
|
179
|
public Set<String> getAcronyms() {
|
180
|
return acronyms;
|
181
|
}
|
182
|
|
183
|
public void setAcronyms(final Set<String> acronyms) {
|
184
|
this.acronyms = acronyms;
|
185
|
}
|
186
|
|
187
|
public Set<String> getTypes() {
|
188
|
return types;
|
189
|
}
|
190
|
|
191
|
public void setTypes(final Set<String> types) {
|
192
|
this.types = types;
|
193
|
}
|
194
|
|
195
|
public Set<String> getUrls() {
|
196
|
return urls;
|
197
|
}
|
198
|
|
199
|
public void setUrls(final Set<String> urls) {
|
200
|
this.urls = urls;
|
201
|
}
|
202
|
|
203
|
}
|