Project

General

Profile

1
package eu.dnetlib.uoaadmintools.entities;
2

    
3
import com.fasterxml.jackson.annotation.JsonProperty;
4

    
5
import org.springframework.data.annotation.Id;
6

    
7
import java.util.Date;
8

    
9
public class Topic {
10

    
11
    @Id
12
    @JsonProperty("_id")
13
    private String id;
14

    
15
    private String name;
16
    private String description;
17
    private Date date = new Date();
18
    private Float weight;
19
    private String questionOrder;
20

    
21
    public Topic() {
22
    }
23

    
24
    /*
25
    public Topic(String name, String description, Float weight, String questionOrder) {
26
        this.name = name;
27
        this.description = description;
28
        this.weight = weight;
29
        this.questionOrder = questionOrder;
30
    }
31
    */
32

    
33
    public String getId() {
34
        return id;
35
    }
36

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

    
41
    public String getName() {
42
        return name;
43
    }
44

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

    
49
    public String getDescription() {
50
        return description;
51
    }
52

    
53
    public void setDescription(String description) {
54
        this.description = description;
55
    }
56

    
57
    public Date getDate() {
58
        return date;
59
    }
60

    
61
    public void setDate(Date date) {
62
        this.date = date;
63
    }
64

    
65
    public Float getWeight() {
66
        return weight;
67
    }
68

    
69
    public void setWeight(Float weight) {
70
        this.weight = weight;
71
    }
72

    
73
    public String getQuestionOrder() {
74
        return questionOrder;
75
    }
76

    
77
    public void setQuestionOrder(String questionOrder) {
78
        this.questionOrder = questionOrder;
79
    }
80
}
(22-22/23)