Project

General

Profile

1
package eu.dnetlib.organizations.model.view;
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 = "type")
39
	private String type;
40

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

    
44
	@Column(name = "lng")
45
	private Double lng;
46

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

    
50
	@Column(name = "country")
51
	private String country;
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 = "acronyms", columnDefinition = "jsonb")
63
	private Set<String> acronyms;
64

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

    
69
	public String getId() {
70
		return id;
71
	}
72

    
73
	public void setId(final String id) {
74
		this.id = id;
75
	}
76

    
77
	public String getName() {
78
		return name;
79
	}
80

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

    
85
	public String getType() {
86
		return type;
87
	}
88

    
89
	public void setType(final String type) {
90
		this.type = type;
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 Set<OtherIdentifier> getOtherIdentifiers() {
126
		return otherIdentifiers;
127
	}
128

    
129
	public void setOtherIdentifiers(final Set<OtherIdentifier> otherIdentifiers) {
130
		this.otherIdentifiers = otherIdentifiers;
131
	}
132

    
133
	public Set<OtherName> getOtherNames() {
134
		return otherNames;
135
	}
136

    
137
	public void setOtherNames(final Set<OtherName> otherNames) {
138
		this.otherNames = otherNames;
139
	}
140

    
141
	public Set<String> getAcronyms() {
142
		return acronyms;
143
	}
144

    
145
	public void setAcronyms(final Set<String> acronyms) {
146
		this.acronyms = acronyms;
147
	}
148

    
149
	public Set<String> getUrls() {
150
		return urls;
151
	}
152

    
153
	public void setUrls(final Set<String> urls) {
154
		this.urls = urls;
155
	}
156

    
157
}
(5-5/8)