1 |
57596
|
michele.ar
|
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.IdClass;
|
9 |
|
|
import javax.persistence.Table;
|
10 |
|
|
|
11 |
|
|
@Entity
|
12 |
|
|
@Table(name = "user_countries")
|
13 |
|
|
@IdClass(UserCountryPK.class)
|
14 |
|
|
public class UserCountry implements Serializable {
|
15 |
|
|
|
16 |
|
|
/**
|
17 |
|
|
*
|
18 |
|
|
*/
|
19 |
|
|
private static final long serialVersionUID = 3493897777214583701L;
|
20 |
|
|
|
21 |
|
|
@Id
|
22 |
|
|
@Column(name = "email")
|
23 |
|
|
private String email;
|
24 |
|
|
|
25 |
|
|
@Id
|
26 |
|
|
@Column(name = "country")
|
27 |
|
|
private String country;
|
28 |
|
|
|
29 |
|
|
public UserCountry() {}
|
30 |
|
|
|
31 |
|
|
public UserCountry(final String email, final String country) {
|
32 |
|
|
this.email = email;
|
33 |
|
|
this.country = country;
|
34 |
|
|
}
|
35 |
|
|
|
36 |
|
|
public String getEmail() {
|
37 |
|
|
return email;
|
38 |
|
|
}
|
39 |
|
|
|
40 |
|
|
public void setEmail(final String email) {
|
41 |
|
|
this.email = email;
|
42 |
|
|
}
|
43 |
|
|
|
44 |
|
|
public String getCountry() {
|
45 |
|
|
return country;
|
46 |
|
|
}
|
47 |
|
|
|
48 |
|
|
public void setCountry(final String country) {
|
49 |
|
|
this.country = country;
|
50 |
|
|
}
|
51 |
|
|
|
52 |
|
|
}
|