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:
43
src/main/java/de/itc/db/dnpm/Setting.java
Normal file
43
src/main/java/de/itc/db/dnpm/Setting.java
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user