59 lines
1.2 KiB
Java
59 lines
1.2 KiB
Java
package eu.eudat.model.persist.referencetypedefinition;
|
|
|
|
import eu.eudat.commons.enums.ReferenceFieldDataType;
|
|
import eu.eudat.commons.validation.old.ValidEnum;
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
public class ReferenceTypeFieldPersist {
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String code = null;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String label = null;
|
|
|
|
|
|
private String description;
|
|
|
|
@ValidEnum(message = "{validation.empty}")
|
|
private ReferenceFieldDataType dataType;
|
|
|
|
|
|
public String getCode() {
|
|
return code;
|
|
}
|
|
|
|
public void setCode(String code) {
|
|
this.code = code;
|
|
}
|
|
|
|
public String getLabel() {
|
|
return label;
|
|
}
|
|
|
|
public void setLabel(String label) {
|
|
this.label = label;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public ReferenceFieldDataType getDataType() {
|
|
return dataType;
|
|
}
|
|
|
|
public void setDataType(ReferenceFieldDataType dataType) {
|
|
this.dataType = dataType;
|
|
}
|
|
}
|
|
|
|
|