Project

General

Profile

1
package eu.dnetlib.goldoa.domain;
2

    
3
import com.google.gwt.user.client.rpc.IsSerializable;
4
import org.hibernate.annotations.Cache;
5
import org.hibernate.annotations.CacheConcurrencyStrategy;
6

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

    
11

    
12
/**
13
 * The persistent class for the country database table.
14
 * 
15
 */
16
@Entity
17
@Cache(usage= CacheConcurrencyStrategy.READ_WRITE,region = "user")
18
public class Country implements IsSerializable {
19
	private static final long serialVersionUID = 1L;
20
	@Id
21
	@Column(columnDefinition = "text")
22
	private String id;
23
	@Column(columnDefinition = "text")
24
	private String name;
25

    
26
	
27
	public Country() {
28
	}
29

    
30
	public Country(String id){
31
		this.id = id;
32
	}
33

    
34
	public String getId() {
35
		return this.id;
36
	}
37

    
38
	public void setId(String id) {
39
		this.id = id;
40
	}
41

    
42
	public String getName() {
43
		return this.name;
44
	}
45

    
46
	public void setName(String name) {
47
		this.name = name;
48
	}
49

    
50
}
(13-13/52)