48 lines
981 B
Java
48 lines
981 B
Java
package eu.eudat.model.persist;
|
|
|
|
|
|
import eu.eudat.commons.validation.old.FieldNotNullIfOtherSet;
|
|
import eu.eudat.commons.validation.old.ValidId;
|
|
import jakarta.validation.Valid;
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
import java.util.UUID;
|
|
|
|
@FieldNotNullIfOtherSet(message = "{validation.hashempty}")
|
|
public class DescriptionReferencePersist {
|
|
@ValidId(message = "{validation.invalidid}")
|
|
private UUID id;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@Valid
|
|
private ReferencePersist reference = null;
|
|
|
|
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 getHash() {
|
|
return hash;
|
|
}
|
|
|
|
public void setHash(String hash) {
|
|
this.hash = hash;
|
|
}
|
|
}
|
|
|
|
|