81 lines
1.5 KiB
Java
81 lines
1.5 KiB
Java
package eu.eudat.model.persist;
|
|
|
|
import eu.eudat.commons.enums.UserSettingsType;
|
|
import eu.eudat.commons.validation.old.FieldNotNullIfOtherSet;
|
|
import eu.eudat.commons.validation.old.ValidId;
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
import java.util.UUID;
|
|
|
|
@FieldNotNullIfOtherSet(message = "{validation.hashempty}")
|
|
public class UserSettingsPersist {
|
|
|
|
@ValidId(message = "{validation.invalidid}")
|
|
private UUID id;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String key;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String value;
|
|
|
|
@ValidId(message = "{validation.invalidid}")
|
|
private UUID entityId;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
private UserSettingsType type;
|
|
|
|
private String hash;
|
|
|
|
public UUID getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(UUID id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getKey() {
|
|
return key;
|
|
}
|
|
|
|
public void setKey(String key) {
|
|
this.key = key;
|
|
}
|
|
|
|
public UUID getEntityId() {
|
|
return entityId;
|
|
}
|
|
|
|
public void setEntityId(UUID entityId) {
|
|
this.entityId = entityId;
|
|
}
|
|
|
|
public UserSettingsType getType() {
|
|
return type;
|
|
}
|
|
|
|
public void setType(UserSettingsType type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public String getHash() {
|
|
return hash;
|
|
}
|
|
|
|
public void setHash(String hash) {
|
|
this.hash = hash;
|
|
}
|
|
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
public void setValue(String value) {
|
|
this.value = value;
|
|
}
|
|
}
|