2023-11-06 12:31:01 +01:00
|
|
|
package eu.eudat.model.persist;
|
|
|
|
|
2023-12-19 14:46:31 +01:00
|
|
|
import eu.eudat.commons.validation.old.FieldNotNullIfOtherSet;
|
|
|
|
import eu.eudat.commons.validation.old.ValidId;
|
2023-11-06 12:31:01 +01:00
|
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
@FieldNotNullIfOtherSet(message = "{validation.hashempty}")
|
|
|
|
public class DmpReferencePersist {
|
|
|
|
|
|
|
|
@ValidId(message = "{validation.invalidid}")
|
|
|
|
private UUID id;
|
|
|
|
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
|
|
@NotEmpty(message = "{validation.empty}")
|
|
|
|
private ReferencePersist reference;
|
|
|
|
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
|
|
@NotEmpty(message = "{validation.empty}")
|
|
|
|
private String data;
|
|
|
|
|
|
|
|
private String hash;
|
|
|
|
|
|
|
|
public UUID getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setId(UUID id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ReferencePersist getReference() {
|
|
|
|
return reference;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setReference(ReferencePersist reference) {
|
|
|
|
this.reference = reference;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getData() {
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setData(String data) {
|
|
|
|
this.data = data;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getHash() {
|
|
|
|
return hash;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setHash(String hash) {
|
|
|
|
this.hash = hash;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|