Revision 45963
Added by Panagiotis Kanakakis over 7 years ago
User.java | ||
---|---|---|
22 | 22 |
//@Column(columnDefinition = "text") |
23 | 23 |
private String lastname; |
24 | 24 |
//@Column(columnDefinition = "text") |
25 |
private String initial; |
|
25 |
private String initials;
|
|
26 | 26 |
//@Column(columnDefinition = "text") |
27 | 27 |
private String telephone; |
28 | 28 |
|
... | ... | |
37 | 37 |
//@Column(columnDefinition = "text") |
38 | 38 |
private String id; |
39 | 39 |
|
40 |
@OneToOne(mappedBy="contact") |
|
41 |
private Publisher publisher; |
|
42 |
|
|
40 | 43 |
@OneToMany(mappedBy = "pk.user", cascade=CascadeType.ALL) |
41 | 44 |
private List<UserRole> roles = new ArrayList<>(); |
42 | 45 |
|
... | ... | |
99 | 102 |
this.lastname = lastname; |
100 | 103 |
} |
101 | 104 |
|
102 |
public String getInitial() { |
|
103 |
return initial; |
|
105 |
public String getInitials() {
|
|
106 |
return initials;
|
|
104 | 107 |
} |
105 | 108 |
|
106 |
public void setInitial(String initial) {
|
|
107 |
this.initial = initial;
|
|
109 |
public void setInitials(String initials) {
|
|
110 |
this.initials = initials;
|
|
108 | 111 |
} |
109 | 112 |
|
110 | 113 |
public String getTelephone() { |
... | ... | |
155 | 158 |
this.id = id; |
156 | 159 |
} |
157 | 160 |
|
158 |
/*public Publisher getPublisher() {
|
|
161 |
public Publisher getPublisher() { |
|
159 | 162 |
return publisher; |
160 | 163 |
} |
161 | 164 |
|
162 | 165 |
public void setPublisher(Publisher publisher) { |
163 | 166 |
this.publisher = publisher; |
164 |
}*/
|
|
167 |
} |
|
165 | 168 |
|
166 | 169 |
public List<Affiliation> getAffiliations() { |
167 | 170 |
return affiliations; |
Also available in: Unified diff