fi.evolver.basics.spring.common.entity.ControlValue Maven / Gradle / Ivy
package fi.evolver.basics.spring.common.entity;
import jakarta.persistence.*;
@Entity
@Table(name="control_value")
public class ControlValue {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
private long id;
@Column(name="key")
private String key;
@Column(name="value")
private String value;
public ControlValue() { }
public ControlValue(String key) {
this.key = key;
}
public long getId() {
return this.id;
}
public String getKey() {
return this.key;
}
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public String toString() {
return String.format("%s: %s", key, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy