Project

General

Profile

1
package eu.dnetlib.goldoa.domain;
2

    
3
import java.io.Serializable;
4
import java.util.ArrayList;
5
import java.util.List;
6

    
7
import javax.persistence.*;
8

    
9

    
10
/**
11
 * The persistent class for the funder database table.
12
 * 
13
 */
14
@Entity
15
public class Funder implements Serializable {
16
	private static final long serialVersionUID = 1L;
17
	@Id
18
	//@Column(columnDefinition = "text")
19
	private String id;
20
	
21
	//@Column(columnDefinition = "text")
22
	private String name;
23
	
24
	//@Column(columnDefinition = "text")
25
	private String source;
26
	
27
	//@Column(columnDefinition = "text")
28
	private String url;
29

    
30
	@OneToMany(mappedBy = "funder",cascade=CascadeType.ALL)
31
	private List<RequestCofunder> requestCofunder = new ArrayList<>();
32
	
33
	public Funder() {
34
	}
35

    
36
	public String getId() {
37
		return this.id;
38
	}
39

    
40
	public void setId(String id) {
41
		this.id = id;
42
	}
43

    
44
	public String getName() {
45
		return this.name;
46
	}
47

    
48
	public void setName(String name) {
49
		this.name = name;
50
	}
51

    
52
	public String getSource() {
53
		return this.source;
54
	}
55

    
56
	public void setSource(String source) {
57
		this.source = source;
58
	}
59

    
60
	public String getUrl() {
61
		return this.url;
62
	}
63

    
64
	public void setUrl(String url) {
65
		this.url = url;
66
	}
67

    
68
}
(13-13/40)