Project

General

Profile

1
package eu.dnetlib.organizations.model;
2

    
3
import java.io.Serializable;
4
import java.util.Set;
5

    
6
import javax.persistence.Column;
7
import javax.persistence.Entity;
8
import javax.persistence.Id;
9
import javax.persistence.Table;
10

    
11
import org.hibernate.annotations.Type;
12
import org.hibernate.annotations.TypeDef;
13
import org.hibernate.annotations.TypeDefs;
14

    
15
import com.vladmihalcea.hibernate.type.json.JsonBinaryType;
16
import com.vladmihalcea.hibernate.type.json.JsonStringType;
17

    
18
@Entity
19
@Table(name = "organizations_view")
20
@TypeDefs({
21
		@TypeDef(name = "json", typeClass = JsonStringType.class),
22
		@TypeDef(name = "jsonb", typeClass = JsonBinaryType.class)
23
})
24
public class OrganizationView implements Serializable {
25

    
26
	/**
27
	 *
28
	 */
29
	private static final long serialVersionUID = -7864607073631041868L;
30

    
31
	@Id
32
	@Column(name = "id")
33
	private String id;
34

    
35
	@Column(name = "name")
36
	private String name;
37

    
38
	@Column(name = "lat")
39
	private Double lat;
40

    
41
	@Column(name = "lng")
42
	private Double lng;
43

    
44
	@Column(name = "city")
45
	private String city;
46

    
47
	@Column(name = "country")
48
	private String country;
49

    
50
	@Column(name = "source")
51
	private String source;
52

    
53
	@Type(type = "jsonb")
54
	@Column(name = "other_ids", columnDefinition = "jsonb")
55
	private Set<OtherIdentifier> otherIdentifiers;
56

    
57
	@Type(type = "jsonb")
58
	@Column(name = "other_names", columnDefinition = "jsonb")
59
	private Set<OtherName> otherNames;
60

    
61
	@Type(type = "jsonb")
62
	@Column(name = "relations", columnDefinition = "jsonb")
63
	private Set<Relation> relations;
64

    
65
	@Type(type = "jsonb")
66
	@Column(name = "acronyms", columnDefinition = "jsonb")
67
	private Set<String> acronyms;
68

    
69
	@Type(type = "jsonb")
70
	@Column(name = "types", columnDefinition = "jsonb")
71
	private Set<String> types;
72

    
73
	@Type(type = "jsonb")
74
	@Column(name = "urls", columnDefinition = "jsonb")
75
	private Set<String> urls;
76

    
77
	public String getId() {
78
		return id;
79
	}
80

    
81
	public void setId(final String id) {
82
		this.id = id;
83
	}
84

    
85
	public String getName() {
86
		return name;
87
	}
88

    
89
	public void setName(final String name) {
90
		this.name = name;
91
	}
92

    
93
	public Double getLat() {
94
		return lat;
95
	}
96

    
97
	public void setLat(final Double lat) {
98
		this.lat = lat;
99
	}
100

    
101
	public Double getLng() {
102
		return lng;
103
	}
104

    
105
	public void setLng(final Double lng) {
106
		this.lng = lng;
107
	}
108

    
109
	public String getCity() {
110
		return city;
111
	}
112

    
113
	public void setCity(final String city) {
114
		this.city = city;
115
	}
116

    
117
	public String getCountry() {
118
		return country;
119
	}
120

    
121
	public void setCountry(final String country) {
122
		this.country = country;
123
	}
124

    
125
	public String getSource() {
126
		return source;
127
	}
128

    
129
	public void setSource(final String source) {
130
		this.source = source;
131
	}
132

    
133
	public Set<OtherIdentifier> getOtherIdentifiers() {
134
		return otherIdentifiers;
135
	}
136

    
137
	public void setOtherIdentifiers(final Set<OtherIdentifier> otherIdentifiers) {
138
		this.otherIdentifiers = otherIdentifiers;
139
	}
140

    
141
	public Set<OtherName> getOtherNames() {
142
		return otherNames;
143
	}
144

    
145
	public void setOtherNames(final Set<OtherName> otherNames) {
146
		this.otherNames = otherNames;
147
	}
148

    
149
	public Set<Relation> getRelations() {
150
		return relations;
151
	}
152

    
153
	public void setRelations(final Set<Relation> relations) {
154
		this.relations = relations;
155
	}
156

    
157
	public Set<String> getAcronyms() {
158
		return acronyms;
159
	}
160

    
161
	public void setAcronyms(final Set<String> acronyms) {
162
		this.acronyms = acronyms;
163
	}
164

    
165
	public Set<String> getTypes() {
166
		return types;
167
	}
168

    
169
	public void setTypes(final Set<String> types) {
170
		this.types = types;
171
	}
172

    
173
	public Set<String> getUrls() {
174
		return urls;
175
	}
176

    
177
	public void setUrls(final Set<String> urls) {
178
		this.urls = urls;
179
	}
180

    
181
	public static long getSerialversionuid() {
182
		return serialVersionUID;
183
	}
184

    
185
}
(1-1/4)