1
0
mirror of https://github.com/pcvolkmer/onkostar-plugin-dnpm.git synced 2025-07-05 10:32:54 +00:00

Issue #11: Service und Spring Data JPA Repository für Systemeinstellungen

This commit is contained in:
2023-03-20 14:07:00 +01:00
parent a8a5e1be8a
commit ef5c91a352
10 changed files with 223 additions and 37 deletions

View File

@ -0,0 +1,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;
}
}