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.GeneratedValue;
|
8
|
import javax.persistence.GenerationType;
|
9
|
import javax.persistence.Id;
|
10
|
import javax.persistence.Table;
|
11
|
|
12
|
@Entity
|
13
|
@Table(name = "organizations")
|
14
|
public class Organization implements Serializable {
|
15
|
|
16
|
/**
|
17
|
*
|
18
|
*/
|
19
|
private static final long serialVersionUID = 5563256467964495301L;
|
20
|
|
21
|
@Id
|
22
|
@Column(name = "id")
|
23
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
24
|
private String id;
|
25
|
|
26
|
@Column(name = "name")
|
27
|
private String name;
|
28
|
|
29
|
@Column(name = "type")
|
30
|
private String type;
|
31
|
|
32
|
@Column(name = "lat")
|
33
|
private Double lat;
|
34
|
|
35
|
@Column(name = "lng")
|
36
|
private Double lng;
|
37
|
|
38
|
@Column(name = "city")
|
39
|
private String city;
|
40
|
|
41
|
@Column(name = "country")
|
42
|
private String country;
|
43
|
|
44
|
public Organization() {}
|
45
|
|
46
|
public Organization(final String id, final String name, final String type, final Double lat, final Double lng, final String city, final String country) {
|
47
|
this.id = id;
|
48
|
this.name = name;
|
49
|
this.type = type;
|
50
|
this.lat = lat;
|
51
|
this.lng = lng;
|
52
|
this.city = city;
|
53
|
this.country = country;
|
54
|
}
|
55
|
|
56
|
public String getId() {
|
57
|
return id;
|
58
|
}
|
59
|
|
60
|
public void setId(final String id) {
|
61
|
this.id = id;
|
62
|
}
|
63
|
|
64
|
public String getName() {
|
65
|
return name;
|
66
|
}
|
67
|
|
68
|
public void setName(final String name) {
|
69
|
this.name = name;
|
70
|
}
|
71
|
|
72
|
public String getType() {
|
73
|
return type;
|
74
|
}
|
75
|
|
76
|
public void setType(final String type) {
|
77
|
this.type = type;
|
78
|
}
|
79
|
|
80
|
public Double getLat() {
|
81
|
return lat;
|
82
|
}
|
83
|
|
84
|
public void setLat(final Double lat) {
|
85
|
this.lat = lat;
|
86
|
}
|
87
|
|
88
|
public Double getLng() {
|
89
|
return lng;
|
90
|
}
|
91
|
|
92
|
public void setLng(final Double lng) {
|
93
|
this.lng = lng;
|
94
|
}
|
95
|
|
96
|
public String getCity() {
|
97
|
return city;
|
98
|
}
|
99
|
|
100
|
public void setCity(final String city) {
|
101
|
this.city = city;
|
102
|
}
|
103
|
|
104
|
public String getCountry() {
|
105
|
return country;
|
106
|
}
|
107
|
|
108
|
public void setCountry(final String country) {
|
109
|
this.country = country;
|
110
|
}
|
111
|
|
112
|
}
|