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
@Entity
11
public class Author implements Serializable{
12
	private static final long serialVersionUID = 1L;
13

    
14
	@Id
15
	//@Column(columnDefinition = "text")
16
	private String id;
17
	
18
	//@Column(columnDefinition = "text",nullable=false)
19
	private String firstname;
20
	
21
	//@Column(columnDefinition = "text",nullable=false)
22
	private String lastname;
23
	
24
	//@Column(columnDefinition = "text")
25
	private String initial;
26
	
27
	//@Column(columnDefinition = "text")
28
	private String telephone;
29
	
30
	//@Column(columnDefinition = "text")
31
	private String password;
32

    
33
	@ManyToMany(fetch = FetchType.LAZY, mappedBy = "authors")
34
	private List<Publication> publications = new ArrayList<>();
35
	
36
	public Author() {}
37
	
38

    
39
	public String getFirstname() {
40
		return firstname;
41
	}
42

    
43

    
44

    
45
	public void setFirstname(String firstname) {
46
		this.firstname = firstname;
47
	}
48

    
49

    
50

    
51
	public String getLastname() {
52
		return lastname;
53
	}
54

    
55

    
56

    
57
	public void setLastname(String lastname) {
58
		this.lastname = lastname;
59
	}
60

    
61

    
62

    
63
	public String getInitial() {
64
		return initial;
65
	}
66

    
67

    
68

    
69
	public void setInitial(String initial) {
70
		this.initial = initial;
71
	}
72

    
73

    
74

    
75
	public String getTelephone() {
76
		return telephone;
77
	}
78

    
79

    
80

    
81
	public void setTelephone(String telephone) {
82
		this.telephone = telephone;
83
	}
84

    
85

    
86
	public String getPassword() {
87
		return password;
88
	}
89

    
90

    
91

    
92
	public void setPassword(String password) {
93
		this.password = password;
94
	}
95

    
96
	public String getId() {
97
		return id;
98
	}
99

    
100
	public void setId(String id) {
101
		this.id = id;
102
	}
103

    
104
}
(8-8/117)