35 lines
612 B
Java
35 lines
612 B
Java
|
package eu.eudat.model.persist.descriptionproperties;
|
||
|
|
||
|
|
||
|
import jakarta.validation.constraints.NotEmpty;
|
||
|
import jakarta.validation.constraints.NotNull;
|
||
|
|
||
|
public class FieldPersist {
|
||
|
@NotNull(message = "{validation.empty}")
|
||
|
@NotEmpty(message = "{validation.empty}")
|
||
|
private String key;
|
||
|
|
||
|
|
||
|
@NotNull(message = "{validation.empty}")
|
||
|
@NotEmpty(message = "{validation.empty}")
|
||
|
private String value;
|
||
|
|
||
|
public String getKey() {
|
||
|
return key;
|
||
|
}
|
||
|
|
||
|
public void setKey(String key) {
|
||
|
this.key = key;
|
||
|
}
|
||
|
|
||
|
public String getValue() {
|
||
|
return value;
|
||
|
}
|
||
|
|
||
|
public void setValue(String value) {
|
||
|
this.value = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|