1
|
package eu.dnetlib.goldoa.domain;
|
2
|
|
3
|
import java.io.Serializable;
|
4
|
import javax.persistence.*;
|
5
|
|
6
|
|
7
|
/**
|
8
|
* The persistent class for the budget_comment database table.
|
9
|
*
|
10
|
*/
|
11
|
@Entity
|
12
|
@Table(name="budget_comment")
|
13
|
@NamedQuery(name="BudgetComment.findAll", query="SELECT b FROM BudgetComment b")
|
14
|
public class BudgetComment implements Serializable {
|
15
|
private static final long serialVersionUID = 1L;
|
16
|
|
17
|
@Id
|
18
|
@ManyToOne
|
19
|
@JoinColumn(name = "budget")
|
20
|
private Budget budget;
|
21
|
@Id
|
22
|
@ManyToOne
|
23
|
@JoinColumn(name = "comment")
|
24
|
private Comment comment;
|
25
|
|
26
|
public BudgetComment() {
|
27
|
}
|
28
|
|
29
|
public Budget getBudget() {
|
30
|
return this.budget;
|
31
|
}
|
32
|
|
33
|
public void setBudget(Budget budget) {
|
34
|
this.budget = budget;
|
35
|
}
|
36
|
|
37
|
public Comment getComment() {
|
38
|
return this.comment;
|
39
|
}
|
40
|
|
41
|
public void setComment(Comment comment) {
|
42
|
this.comment = comment;
|
43
|
}
|
44
|
|
45
|
}
|