summaryrefslogtreecommitdiff
path: root/src/main/java/de/itc/db/dnpm/Setting.java
blob: 262d2c9ccdddafa873bc7e8549353fc373b0be66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package de.itc.db.dnpm;

import org.hibernate.annotations.Immutable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Immutable
@Table(name = "einstellung")
public class Setting {
    @Id
    private Long id;

    private String name;

    @Column(name = "wert")
    private String value;

    protected Setting() {
        // No content
    }

    public Setting(Long id, String name, String value) {
        this.id = id;
        this.name = name;
        this.value = value;
    }

    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }
}